[DE] Don't show disconnect message on window close/reload
This commit is contained in:
parent
a38dd40749
commit
d7b920f97c
|
@ -1051,10 +1051,12 @@ define([
|
||||||
case Asc.c_oAscAsyncAction['Disconnect']:
|
case Asc.c_oAscAsyncAction['Disconnect']:
|
||||||
text = this.textDisconnect;
|
text = this.textDisconnect;
|
||||||
this.disableEditing(true, true);
|
this.disableEditing(true, true);
|
||||||
var me = this;
|
if (!this._state.unload) { // don't show disconnect message on window close/reload
|
||||||
statusCallback = function() {
|
var me = this;
|
||||||
me.getApplication().getController('Statusbar').showDisconnectTip();
|
statusCallback = function() {
|
||||||
};
|
me.getApplication().getController('Statusbar').showDisconnectTip();
|
||||||
|
};
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -2065,6 +2067,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onUnload: function() {
|
onUnload: function() {
|
||||||
|
this._state.unload = true;
|
||||||
if (this.continueSavingTimer) clearTimeout(this.continueSavingTimer);
|
if (this.continueSavingTimer) clearTimeout(this.continueSavingTimer);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue