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:
ec6a280
)
docs/resources/page.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 2 Jun 2010 10:11:21 +0000
(18:11 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 2 Jun 2010 10:11:21 +0000
(18:11 +0800)
docs/resources/page.js
patch
|
blob
|
history
diff --git
a/docs/resources/page.js
b/docs/resources/page.js
index
3d7c49c
..
cf6d9ff
100755
(executable)
--- a/
docs/resources/page.js
+++ b/
docs/resources/page.js
@@
-126,11
+126,22
@@
RooDocsPage = {
}
return d.getAttributeNS(ns, name) || d.getAttribute(ns+":"+name) || d.getAttribute(name) || d[name];
}
return d.getAttributeNS(ns, name) || d.getAttribute(ns+":"+name) || d.getAttribute(name) || d[name];
+ },
+ display : '',
+
+ toggle : function () {
+ display = display == 'none' ? '': 'none';
+ Array.prototype.slice.call(
+ document.getElementsByTagName('tr')
+ ).forEach(function(tr) {
+ tr.style.display = '';
+ if (tr.className.match(/notInherited/)) return;
+ if (!tr.className.match(/expandable/)) return;
+ tr.style.display = display;
+ });
}
}
-
}
}
-
/*
this.preview.getEl().on('click', function(e, target)
{
/*
this.preview.getEl().on('click', function(e, target)
{