Author: konstantin.mishin
Date: 2008-08-27 11:54:59 -0400 (Wed, 27 Aug 2008)
New Revision: 10209
Modified:
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
Log:
RF-4299
Modified:
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
===================================================================
---
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2008-08-27
14:31:10 UTC (rev 10208)
+++
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2008-08-27
15:54:59 UTC (rev 10209)
@@ -257,9 +257,7 @@
if (handleElt) {
handleElt.onclick();
}
- }
-
- if (this.hasChilds() && !this.isCollapsed()) {
+ } else if (this.hasChilds() && !this.isCollapsed()) {
Element.hide(this.elements.childrenRow);
Element.hide(this.elements.handleImgExpanded);
Element.show(this.elements.handleImgCollapsed);
@@ -268,9 +266,8 @@
Element.removeClassName(eIcon, Tree.CLASS_ITEM_EXPANDED);
Element.addClassName(eIcon, Tree.CLASS_ITEM_COLLAPSED);
}
+ this.fireCollapsionEvent();
}
-
- this.fireCollapsionEvent();
},
expand: function() {
@@ -279,9 +276,7 @@
if (handleElt) {
handleElt.onclick();
}
- }
-
- if (this.hasChilds() && this.isCollapsed()) {
+ } else if (this.hasChilds() && this.isCollapsed()) {
Element.show(this.elements.childrenRow);
Element.show(this.elements.handleImgExpanded);
Element.hide(this.elements.handleImgCollapsed);
@@ -290,9 +285,8 @@
Element.removeClassName(eIcon, Tree.CLASS_ITEM_COLLAPSED);
Element.addClassName(eIcon, Tree.CLASS_ITEM_EXPANDED);
}
+ this.fireExpansionEvent();
}
-
- this.fireExpansionEvent();
},
isCollapsed: function() {
Show replies by date