Author: taylor
Date: Tue Dec 5 23:20:50 2006
New Revision: 482941
URL: http://svn.apache.org/viewvc?view=rev&rev=482941
Log:
auto expand the root node upon load, with any rooted tree, not only /
Modified:
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/site-view.vm
Modified:
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/site-view.vm
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/site-view.vm?view=diff&rev=482941&r1=482940&r2=482941
==============================================================================
---
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/site-view.vm
(original)
+++
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/site-view.vm
Tue Dec 5 23:20:50 2006
@@ -1098,8 +1098,9 @@
dojo.event.connect(securityTable, "updateEditor", updateEditor );
dojo.event.connect(securityTable, "saveEntrySubmit",
saveSecurityEntrySubmit );
dojo.event.connect(securityTable, "clearAndDisableEditor",
clearAndDisableEditor );
- var rootNode = dojo.widget.byId("/");
- rootNode.expand();
+ var tree = dojo.widget.byId("siteTree");
+ if (tree.children[0])
+ tree.children[0].expand();
});
// General Table Functions
function processTableRowEvent(e, tableName)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]