diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 9fae3dfc1..5212e6863 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -593,7 +593,7 @@ define([ this.setLongActionView(action) } else { var me = this; - if (id==Asc.c_oAscAsyncAction['Save'] || id==Asc.c_oAscAsyncAction['ForceSaveButton']) { + if ((id==Asc.c_oAscAsyncAction['Save'] || id==Asc.c_oAscAsyncAction['ForceSaveButton']) && !this.appOptions.isOffline) { if (this._state.fastCoauth && this._state.usersCount>1) { me._state.timerSave = setTimeout(function () { me.getApplication().getController('Statusbar').setStatusCaption(me.textChangesSaved, false, 3000); @@ -631,8 +631,8 @@ define([ case Asc.c_oAscAsyncAction['ForceSaveButton']: clearTimeout(this._state.timerSave); force = true; - title = this.saveTitleText; - text = this.saveTextText; + title = (!this.appOptions.isOffline) ? this.saveTitleText : ''; + text = (!this.appOptions.isOffline) ? this.saveTextText : ''; break; case Asc.c_oAscAsyncAction['LoadDocumentFonts']: diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index e195f8583..206abb901 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -413,7 +413,7 @@ define([ if (action) { this.setLongActionView(action) } else { - if (id==Asc.c_oAscAsyncAction['Save'] || id==Asc.c_oAscAsyncAction['ForceSaveButton']) { + if ((id==Asc.c_oAscAsyncAction['Save'] || id==Asc.c_oAscAsyncAction['ForceSaveButton']) && !this.appOptions.isOffline) { if (this._state.fastCoauth && this._state.usersCount>1) { var me = this; me._state.timerSave = setTimeout(function () { @@ -451,8 +451,8 @@ define([ case Asc.c_oAscAsyncAction['ForceSaveButton']: clearTimeout(this._state.timerSave); force = true; - // title = this.saveTitleText; - // text = this.saveTextText; + // title = (!this.appOptions.isOffline) ? this.saveTitleText : ''; + // text = (!this.appOptions.isOffline) ? this.saveTextText : ''; break; case Asc.c_oAscAsyncAction['ForceSaveTimeout']: