projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d6e4d4
)
templates/resources/page.js
author
Alan Knowles
<alan@akkbhome.com>
Thu, 25 Nov 2010 14:57:09 +0000
(22:57 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Thu, 25 Nov 2010 14:57:09 +0000
(22:57 +0800)
templates/resources/page.js
patch
|
blob
|
history
diff --git
a/templates/resources/page.js
b/templates/resources/page.js
index
3d7c49c
..
9977a4e
100644
(file)
--- a/
templates/resources/page.js
+++ b/
templates/resources/page.js
@@
-126,8
+126,18
@@
RooDocsPage = {
}
return d.getAttributeNS(ns, name) || d.getAttribute(ns+":"+name) || d.getAttribute(name) || d[name];
+ },
+ vis : '',
+ toggle : function()
+ {
+ this.vis = this.vis == '' ? 'none : '';
+ var vis = this.vis;
+ Array.prototype.slice.call(
+ document.getElementsByClassName('expandable')
+ ).forEach(function(e) {
+ if (!e.className.match(/notInherited/)) { e.style.display= vis; }}
+ )
}
-
}