You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2006/12/06 08:20:51 UTC

svn commit: r482941 - /portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/site-view.vm

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: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org