[DE] Refactoring disconnect message on window close/reload
This commit is contained in:
parent
b1a58e9f61
commit
9a3a1f1228
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue