Răsfoiți Sursa

组织管理,搜索异常

unknown 5 ani în urmă
părinte
comite
ffa4a357f3
1 a modificat fișierele cu 7 adăugiri și 2 ștergeri
  1. 7 2
      o2web/source/x_component_Org/$Explorer.js

+ 7 - 2
o2web/source/x_component_Org/$Explorer.js

@@ -264,7 +264,7 @@ MWF.xApplication.Org.$Explorer = new Class({
                 if (this.currentItem) isSearchElement = this.currentItem.unSelected();
                 if (isSearchElement){
                     this.clear();
-                    this.loadElements();
+                    this.reloadElements();
                 }else{
                     this.app.notice(this.options.lp.elementSave, "error", this.propertyContentNode);
                 }
@@ -273,7 +273,7 @@ MWF.xApplication.Org.$Explorer = new Class({
             if (this.currentItem) isSearchElement = this.currentItem.unSelected();
             if (isSearchElement){
                 this.clear();
-                this.loadElements();
+                this.reloadElements();
             }else{
                 this.app.notice(this.options.lp.elementSave, "error", this.propertyContentNode);
             }
@@ -370,6 +370,11 @@ MWF.xApplication.Org.$Explorer = new Class({
             this.loadElements(true);
         }
     },
+    reloadElements : function(){
+        this.elements = [];
+        this.clear();
+        this.loadElements();
+    },
     loadElements: function(addToNext){
         if (!this.isElementLoaded){
             if (!this.loaddingElement){