portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r482941 - /portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/site-view.vm
Date Wed, 06 Dec 2006 07:20:51 GMT
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


Mime
View raw message