Commit 29d67037 authored by Julia Radzhabova's avatar Julia Radzhabova

Fix Bug 35358.

parent a946d157
...@@ -603,7 +603,7 @@ define([ ...@@ -603,7 +603,7 @@ define([
if (action) { if (action) {
this.setLongActionView(action) this.setLongActionView(action)
} else { } 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) { if (this._state.fastCoauth && this._state.usersCount>1) {
var me = this; var me = this;
me._state.timerSave = setTimeout(function () { me._state.timerSave = setTimeout(function () {
...@@ -642,8 +642,8 @@ define([ ...@@ -642,8 +642,8 @@ define([
case Asc.c_oAscAsyncAction['ForceSaveButton']: case Asc.c_oAscAsyncAction['ForceSaveButton']:
clearTimeout(this._state.timerSave); clearTimeout(this._state.timerSave);
force = true; force = true;
title = this.saveTitleText; title = (!this.appOptions.isOffline) ? this.saveTitleText : '';
text = this.saveTextText; text = (!this.appOptions.isOffline) ? this.saveTextText : '';
break; break;
case Asc.c_oAscAsyncAction['ForceSaveTimeout']: case Asc.c_oAscAsyncAction['ForceSaveTimeout']:
......
...@@ -421,7 +421,7 @@ define([ ...@@ -421,7 +421,7 @@ define([
if (action) { if (action) {
this.setLongActionView(action) this.setLongActionView(action)
} else { } 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) { if (this._state.fastCoauth && this._state.usersCount>1) {
var me = this; var me = this;
me._state.timerSave = setTimeout(function () { me._state.timerSave = setTimeout(function () {
...@@ -458,8 +458,8 @@ define([ ...@@ -458,8 +458,8 @@ define([
case Asc.c_oAscAsyncAction['ForceSaveButton']: case Asc.c_oAscAsyncAction['ForceSaveButton']:
clearTimeout(this._state.timerSave); clearTimeout(this._state.timerSave);
force = true; force = true;
title = this.saveTitleText; title = (!this.appOptions.isOffline) ? this.saveTitleText : '';
text = this.saveTextText; text = (!this.appOptions.isOffline) ? this.saveTextText : '';
break; break;
case Asc.c_oAscAsyncAction['ForceSaveTimeout']: case Asc.c_oAscAsyncAction['ForceSaveTimeout']:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment