Author: pyaschenko
Date: 2011-02-14 12:37:56 -0500 (Mon, 14 Feb 2011)
New Revision: 21644
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js
Log:
https://jira.jboss.org/browse/RF-10401
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js
===================================================================
---
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js 2011-02-14
17:18:34 UTC (rev 21643)
+++
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js 2011-02-14
17:37:56 UTC (rev 21644)
@@ -211,11 +211,12 @@
},
expand : function () {
+ if (this.expanded()) return;
if (!this.__fireEvent("beforeexpand")) {
return false;
}
- this.__expand();
+ EXPAND_ITEM.exec(this, true);
return this.__fireEvent("expand");
},
@@ -234,11 +235,12 @@
},
collapse : function () {
+ if (!this.expanded()) return;
if (!this.__fireEvent("beforecollapse")) {
return false;
}
- this.__collapse();
+ EXPAND_ITEM.exec(this, true);
this.__childGroups().each (function(index, group) {
//TODO nick - why not group.collapse()?