Author: nbelaevski
Date: 2008-09-02 20:29:42 -0400 (Tue, 02 Sep 2008)
New Revision: 10287
Modified:
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
Log:
https://jira.jboss.org/jira/browse/RF-4381
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-09-03
00:12:59 UTC (rev 10286)
+++
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2008-09-03
00:29:42 UTC (rev 10287)
@@ -283,6 +283,12 @@
Element.removeClassName(eIcon, Tree.CLASS_ITEM_EXPANDED);
Element.addClassName(eIcon, Tree.CLASS_ITEM_COLLAPSED);
}
+
+ var nodeStateInput = $(this.id + "NodeExpanded");
+ if (nodeStateInput) {
+ nodeStateInput.value = "false";
+ }
+
this.fireCollapsionEvent();
}
},
@@ -302,6 +308,12 @@
Element.removeClassName(eIcon, Tree.CLASS_ITEM_COLLAPSED);
Element.addClassName(eIcon, Tree.CLASS_ITEM_EXPANDED);
}
+
+ var nodeStateInput = $(this.id + "NodeExpanded");
+ if (nodeStateInput) {
+ nodeStateInput.value = "true";
+ }
+
this.fireExpansionEvent();
}
},