mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 04:31:26 +08:00
[PE] Debug forcesave mode.
This commit is contained in:
@ -392,9 +392,10 @@ define([
|
||||
} else {
|
||||
if (id==Asc.c_oAscAsyncAction['Save'] || id==Asc.c_oAscAsyncAction['ForceSaveButton']) {
|
||||
if (this._state.fastCoauth && this._state.usersCount>1) {
|
||||
clearTimeout(this._state.timerSave);
|
||||
this._state.timerSave = setTimeout(function () {
|
||||
var me = this;
|
||||
me._state.timerSave = setTimeout(function () {
|
||||
appHeader.setSaveStatus('end');
|
||||
delete me._state.timerSave;
|
||||
}, 500);
|
||||
} else
|
||||
appHeader.setSaveStatus('end');
|
||||
@ -504,7 +505,7 @@ define([
|
||||
if (!this.isShowOpenDialog)
|
||||
this.loadMask.show();
|
||||
} else
|
||||
if ( action.id == Asc.c_oAscAsyncAction.Save ) {
|
||||
if ( action.id == Asc.c_oAscAsyncAction.Save || action.id == Asc.c_oAscAsyncAction.ForceSaveButton ) {
|
||||
appHeader.setSaveStatus('begin');
|
||||
} else {
|
||||
this.getApplication().getController('Statusbar').setStatusCaption(text, force);
|
||||
@ -1108,6 +1109,7 @@ define([
|
||||
title = appHeader.getDocumentCaption() + ' - ' + title;
|
||||
|
||||
if (isModified) {
|
||||
clearTimeout(this._state.timerCaption);
|
||||
if (!_.isUndefined(title)) {
|
||||
title = '* ' + title;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user