Guest User

Untitled

a guest
Jul 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. Index: sapphire/javascript/TreeSelectorField.js
  2. ===================================================================
  3. --- sapphire/javascript/TreeSelectorField.js (revision 97745)
  4. +++ sapphire/javascript/TreeSelectorField.js (working copy)
  5. @@ -114,8 +114,6 @@
  6.  
  7. saveCurrentState: function() {
  8. this.origHumanText = this.getHumanText();
  9. - this.defaultCleared = false;
  10. - this.searched = false;
  11. },
  12.  
  13. restoreOriginalState: function() {
  14. @@ -324,7 +322,7 @@
  15. }
  16.  
  17. if (!this.treeDropdownField.treeShown) this.treeDropdownField.toggleTree();
  18. - if (!this.treeDropdownField.defaultCleared) {
  19. + if (!this.treeDropdownField.defaultCleared || !this.treeDropdownField.searched) {
  20. this.treeDropdownField.defaultCleared = true;
  21. this.treeDropdownField.setHumanText('');
  22. }
  23. @@ -338,7 +336,8 @@
  24. if(this.tree.selected && this.tree.selected.removeNodeClass) this.tree.selected.removeNodeClass('current');
  25. this.addNodeClass('current');
  26. this.tree.selected = this;
  27. -
  28. +
  29. + this.options.dropdownField.searched = false;
  30. }
  31. }
Add Comment
Please, Sign In to add comment