[DE] Refactoring disconnect message on window close/reload

This commit is contained in:
Julia Radzhabova 2022-03-05 14:16:34 +03:00
parent b1a58e9f61
commit 9a3a1f1228

View file

@ -971,6 +971,7 @@ define([
}
if ( id == Asc.c_oAscAsyncAction['Disconnect']) {
this._state.timerDisconnect && clearTimeout(this._state.timerDisconnect);
this.disableEditing(false, true);
this.getApplication().getController('Statusbar').hideDisconnectTip();
this.getApplication().getController('Statusbar').setStatusCaption(this.textReconnect);
@ -1078,7 +1079,7 @@ define([
this.disableEditing(true, true);
var me = this;
statusCallback = function() {
setTimeout(function(){
me._state.timerDisconnect = setTimeout(function(){
me.getApplication().getController('Statusbar').showDisconnectTip();
}, me._state.unloadTimer || 0);
};