Author: nbelaevski
Date: 2011-02-16 19:02:34 -0500 (Wed, 16 Feb 2011)
New Revision: 21718
Modified:
trunk/ui/iteration/ui/src/main/resources/META-INF/resources/org.richfaces/tree.js
Log:
https://issues.jboss.org/browse/RF-10514
Modified:
trunk/ui/iteration/ui/src/main/resources/META-INF/resources/org.richfaces/tree.js
===================================================================
---
trunk/ui/iteration/ui/src/main/resources/META-INF/resources/org.richfaces/tree.js 2011-02-16
23:59:59 UTC (rev 21717)
+++
trunk/ui/iteration/ui/src/main/resources/META-INF/resources/org.richfaces/tree.js 2011-02-17
00:02:34 UTC (rev 21718)
@@ -354,12 +354,16 @@
this.__treeRootElt.delegate(".rf-trn-cnt", "mousedown", this,
this.__nodeSelectionActivated);
- this.__selectionInput = $(" > .rf-tr-sel-inp", this.__treeRootElt);
+ this.__findSelectionInput();
this.__selection = new richfaces.ui.TreeNodeSet(this.__selectionInput.val());
$(document).ready($.proxy(this.__updateSelectionFromInput, this));
},
+ __findSelectionInput: function () {
+ this.__selectionInput = $(" > .rf-tr-sel-inp", this.__treeRootElt);
+ },
+
__addLastNodeClass: function() {
//stub function overriding parent class method
},
@@ -468,6 +472,7 @@
},
__updateSelectionFromInput: function() {
+ this.__findSelectionInput();
this.__updateSelection(new richfaces.ui.TreeNodeSet(this.__selectionInput.val()));
},