[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']) {
|
if ( id == Asc.c_oAscAsyncAction['Disconnect']) {
|
||||||
|
this._state.timerDisconnect && clearTimeout(this._state.timerDisconnect);
|
||||||
this.disableEditing(false, true);
|
this.disableEditing(false, true);
|
||||||
this.getApplication().getController('Statusbar').hideDisconnectTip();
|
this.getApplication().getController('Statusbar').hideDisconnectTip();
|
||||||
this.getApplication().getController('Statusbar').setStatusCaption(this.textReconnect);
|
this.getApplication().getController('Statusbar').setStatusCaption(this.textReconnect);
|
||||||
|
@ -1078,7 +1079,7 @@ define([
|
||||||
this.disableEditing(true, true);
|
this.disableEditing(true, true);
|
||||||
var me = this;
|
var me = this;
|
||||||
statusCallback = function() {
|
statusCallback = function() {
|
||||||
setTimeout(function(){
|
me._state.timerDisconnect = setTimeout(function(){
|
||||||
me.getApplication().getController('Statusbar').showDisconnectTip();
|
me.getApplication().getController('Statusbar').showDisconnectTip();
|
||||||
}, me._state.unloadTimer || 0);
|
}, me._state.unloadTimer || 0);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue