return ;
}
+ var style = self.currentStyle || window.getComputedStyle (self, false);
+ var orig_path = /url[ \t]*\(('(.*)'|"(.*)")\)/.exec (style.backgroundImage)[1].slice(1, -1);
+ var orig_dir = get_path (orig_path);
if (element.style.display == 'block') {
element.style.display = 'none';
- self.src = get_path (self.src) + 'coll_open.png';
+ self.style.backgroundImage = "url('" + orig_dir + 'coll_open.png' + "')";
} else {
element.style.display = 'block';
- self.src = get_path (self.src) + 'coll_close.png';
+ self.style.backgroundImage = "url('" + orig_dir + 'coll_close.png' + "')";
}
}
writer.start_tag ("div", {"class", css_box});
// headline:
- writer.start_tag ("div", {"class", css_box_headline});
- writer.start_tag ("div", {"class", css_box_headline_text})
+ writer.start_tag ("div", {"class", css_box_headline, "onclick", "toggle_box (this, '%s')".printf (html_id)})
.text (headline)
.end_tag ("div");
- writer.start_tag ("div", {"class", css_box_headline_toggle});
- writer.start_tag ("img", {"onclick",
- "toggle_box (this, '" + html_id + "')",
- "src",
- Path.build_filename (get_icon_directory (),
- "coll_open.png")});
- writer.raw_text (" ");
- writer.end_tag ("div");
- writer.end_tag ("div");
+ //writer.start_tag ("div", {"class", css_box_headline_text, "onclick", "toggle_box (this, '%s')".printf (html_id)})
+ // .text (headline)
+ // .end_tag ("div");
+ //writer.start_tag ("div", {"class", css_box_headline_toggle});
+ //writer.start_tag ("img", {"onclick",
+ // "toggle_box (this, '" + html_id + "')",
+ // "src",
+ // Path.build_filename (get_icon_directory (),
+ // "coll_open.png")});
+ //writer.raw_text (" ");
+ //writer.end_tag ("div");
+ //writer.end_tag ("div");
// content:
"All known sub-structs:");
}
-
if (node.parent is Namespace) {
writer.simple_tag ("br");
write_namespace_note (node);
Api.NodeType.PROPERTY,
Api.NodeType.FIELD,
Api.NodeType.CONSTANT
- })) {
+ }))
+ {
writer.start_tag ("h2", {"class", css_title}).text ("Content:").end_tag ("h2");
write_children (node, Api.NodeType.ERROR_CODE, "Error codes", node);
write_children (node, Api.NodeType.ENUM_VALUE, "Enum values", node);