Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: sapphire/javascript/TreeSelectorField.js
- ===================================================================
- --- sapphire/javascript/TreeSelectorField.js (revision 97745)
- +++ sapphire/javascript/TreeSelectorField.js (working copy)
- @@ -114,8 +114,6 @@
- saveCurrentState: function() {
- this.origHumanText = this.getHumanText();
- - this.defaultCleared = false;
- - this.searched = false;
- },
- restoreOriginalState: function() {
- @@ -324,7 +322,7 @@
- }
- if (!this.treeDropdownField.treeShown) this.treeDropdownField.toggleTree();
- - if (!this.treeDropdownField.defaultCleared) {
- + if (!this.treeDropdownField.defaultCleared || !this.treeDropdownField.searched) {
- this.treeDropdownField.defaultCleared = true;
- this.treeDropdownField.setHumanText('');
- }
- @@ -338,7 +336,8 @@
- if(this.tree.selected && this.tree.selected.removeNodeClass) this.tree.selected.removeNodeClass('current');
- this.addNodeClass('current');
- this.tree.selected = this;
- -
- +
- + this.options.dropdownField.searched = false;
- }
- }
Add Comment
Please, Sign In to add comment