Author: sergeyhalipov
Date: 2008-03-12 11:03:00 -0400 (Wed, 12 Mar 2008)
New Revision: 6757
Modified:
trunk/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/scripts/panelMenu.js
Log:
http://jira.jboss.com/jira/browse/RF-1484
Aliases added.
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-03-12
14:40:39 UTC (rev 6756)
+++
trunk/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/scripts/panelMenu.js 2008-03-12
15:03:00 UTC (rev 6757)
@@ -168,6 +168,13 @@
expand: function(){
if (!this.disabled) {
+ var parent = this.parentObj;
+ while (parent) {
+ if (parent.type && "node" == parent.type) {
+ parent.expand();
+ }
+ parent = parent.parentObj;
+ }
if (!this.expanded) {
if (this._getDirectChildrenByTag(this.content,"INPUT")[0]!=null){
this.inputState.value="opened";
@@ -400,12 +407,13 @@
},
doCollapse: function(e) {
- PanelMenu.doCollapse(this.itemId);
+ this.collapse();
},
doExpand: function(e) {
- PanelMenu.doExpand(this.itemId);
+ this.expand();
}
+
};
PanelMenu.doExpand = function (id) {
@@ -417,12 +425,6 @@
group.parentObj.lastExpanded.collapse();
}
}
- while (parent) {
- if (parent.type && "node" == parent.type) {
- parent.expand();
- }
- parent = parent.parentObj;
- }
if (!group.expanded && new Function(group.onopen+";return
true;")()){
group.expand();
}