Author: akushunin
Date: 2008-01-25 09:11:32 -0500 (Fri, 25 Jan 2008)
New Revision: 5626
Modified:
trunk/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/scripts/panelMenu.js
Log:
http://jira.jboss.com/jira/browse/RF-1919
Modified:
trunk/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/scripts/panelMenu.js
===================================================================
---
trunk/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/scripts/panelMenu.js 2008-01-25
14:09:38 UTC (rev 5625)
+++
trunk/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/scripts/panelMenu.js 2008-01-25
14:11:32 UTC (rev 5626)
@@ -414,6 +414,10 @@
if (!group.expanded && new Function(group.onopen+";return
true;")()){
group.expand();
}
+ }else if(group.childObj&&group.childObj.length>0){
+ for (var i=0;i<group.childObj.length;i++){
+ PanelMenu.doExpand(group.childObj[i].clientId);
+ }
}
}
@@ -423,5 +427,9 @@
if (group.expanded && new Function(group.onclose+";return
true;")()){
group.collapse();
}
+ }else if(group.childObj&&group.childObj.length>0){
+ for (var i=0;i<group.childObj.length;i++){
+ PanelMenu.doCollapse(group.childObj[i].clientId);
+ }
}
}