Ver código fonte

修复组织管理组织视图搜索可能报错的问题

unknown 5 anos atrás
pai
commit
882ab97043
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      o2web/source/x_component_Org/$Explorer.js

+ 1 - 1
o2web/source/x_component_Org/$Explorer.js

@@ -244,9 +244,9 @@ MWF.xApplication.Org.$Explorer = new Class({
     },
     },
     searchOrg: function(){
     searchOrg: function(){
         var key = this.searchInputNode.get("value");
         var key = this.searchInputNode.get("value");
+        var isSearchElement = true;
         if (key){
         if (key){
             if (key!==this.options.lp.searchText){
             if (key!==this.options.lp.searchText){
-                var isSearchElement = true;
                 if (this.currentItem) isSearchElement = this.currentItem.unSelected();
                 if (this.currentItem) isSearchElement = this.currentItem.unSelected();
                 if (isSearchElement){
                 if (isSearchElement){
                     this._listElementByKey(function(json){
                     this._listElementByKey(function(json){