Explorar o código

Merge branch 'fix/appCenter_bug' into 'develop'

[应用管理]修改导出bug

See merge request o2oa/o2oa!888
胡起 %!s(int64=5) %!d(string=hai) anos
pai
achega
a02c19b039
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      o2web/source/x_component_AppCenter/Main.js

+ 4 - 2
o2web/source/x_component_AppCenter/Main.js

@@ -381,7 +381,9 @@ MWF.xApplication.AppCenter.Exporter = new Class({
                     if (callback) callback();
                 }.bind(this),
                 "onPostClose": function() {
-                    _self.app.fireEvent("exporterClose");
+                    if(_self.app){
+                        _self.app.fireEvent("exporterClose");
+                    }
                     MWF.release(_self);
                 }
             });
@@ -442,7 +444,7 @@ MWF.xApplication.AppCenter.Exporter = new Class({
                         if (this.mask) this.mask.hide();
                         this.dlg.close();
                         window.open(o2.filterUrl(this.app.actions.action.address+uri));
-
+                        this.app.fireEvent("exporterClose");
                         MWF.release(this);
                     }.bind(this), function(xhr, text, error){
                         if (xhr.status!=0){