diff --git a/javascript/TreeSelectorField.js b/javascript/TreeSelectorField.js index 80655aa86..37faa6148 100755 --- a/javascript/TreeSelectorField.js +++ b/javascript/TreeSelectorField.js @@ -263,6 +263,7 @@ TreeMultiselectField.prototype = { newTreeReady: function (response) { this.TreeDropdownField.newTreeReady(response); MultiselectTree.create(this.tree); + this.tree.options.onselect = this.updateVal.bind(this); // Select the appropriate items var selectedItems = this.inputTag.value.split(/ *, */); @@ -272,16 +273,22 @@ TreeMultiselectField.prototype = { var allNodes = this.tree.getElementsByTagName('li'); for(i=0;i