[PE] Debug forcesave mode.

This commit is contained in:
Julia Radzhabova 2017-04-21 14:17:08 +03:00
parent 782477aac6
commit 4379bb208b

View file

@ -392,9 +392,10 @@ define([
} else { } else {
if (id==Asc.c_oAscAsyncAction['Save'] || id==Asc.c_oAscAsyncAction['ForceSaveButton']) { if (id==Asc.c_oAscAsyncAction['Save'] || id==Asc.c_oAscAsyncAction['ForceSaveButton']) {
if (this._state.fastCoauth && this._state.usersCount>1) { if (this._state.fastCoauth && this._state.usersCount>1) {
clearTimeout(this._state.timerSave); var me = this;
this._state.timerSave = setTimeout(function () { me._state.timerSave = setTimeout(function () {
appHeader.setSaveStatus('end'); appHeader.setSaveStatus('end');
delete me._state.timerSave;
}, 500); }, 500);
} else } else
appHeader.setSaveStatus('end'); appHeader.setSaveStatus('end');
@ -504,7 +505,7 @@ define([
if (!this.isShowOpenDialog) if (!this.isShowOpenDialog)
this.loadMask.show(); this.loadMask.show();
} else } else
if ( action.id == Asc.c_oAscAsyncAction.Save ) { if ( action.id == Asc.c_oAscAsyncAction.Save || action.id == Asc.c_oAscAsyncAction.ForceSaveButton ) {
appHeader.setSaveStatus('begin'); appHeader.setSaveStatus('begin');
} else { } else {
this.getApplication().getController('Statusbar').setStatusCaption(text, force); this.getApplication().getController('Statusbar').setStatusCaption(text, force);
@ -1108,6 +1109,7 @@ define([
title = appHeader.getDocumentCaption() + ' - ' + title; title = appHeader.getDocumentCaption() + ' - ' + title;
if (isModified) { if (isModified) {
clearTimeout(this._state.timerCaption);
if (!_.isUndefined(title)) { if (!_.isUndefined(title)) {
title = '* ' + title; title = '* ' + title;
} }