diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 535dfe7d4..1bb785d44 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1625,12 +1625,9 @@ define([ break; case Asc.c_oAscError.ID.ForceSaveButton: - config.msg = this.errorForceSave; - break; - case Asc.c_oAscError.ID.ForceSaveTimeout: config.msg = this.errorForceSave; - console.warn(config.msg); + config.maxwidth = 600; break; case Asc.c_oAscError.ID.DataEncrypted: @@ -1736,10 +1733,8 @@ define([ }, this); } - if (id !== Asc.c_oAscError.ID.ForceSaveTimeout) { - if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value=' + id + ']').length<1) - Common.UI.alert(config).$window.attr('data-value', id); - } + if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value=' + id + ']').length<1) + Common.UI.alert(config).$window.attr('data-value', id); (id!==undefined) && Common.component.Analytics.trackEvent('Internal Error', id.toString()); }, diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 2a40265c2..0b1a0ee4e 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -1301,12 +1301,9 @@ define([ break; case Asc.c_oAscError.ID.ForceSaveButton: - config.msg = this.errorForceSave; - break; - case Asc.c_oAscError.ID.ForceSaveTimeout: config.msg = this.errorForceSave; - console.warn(config.msg); + config.maxwidth = 600; break; case Asc.c_oAscError.ID.DataEncrypted: @@ -1399,10 +1396,8 @@ define([ }, this); } - if (id !== Asc.c_oAscError.ID.ForceSaveTimeout) { - if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value=' + id + ']').length<1) - Common.UI.alert(config).$window.attr('data-value', id); - } + if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value=' + id + ']').length<1) + Common.UI.alert(config).$window.attr('data-value', id); (id!==undefined) && Common.component.Analytics.trackEvent('Internal Error', id.toString()); }, diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index d697b4088..c2376f897 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -1514,12 +1514,9 @@ define([ break; case Asc.c_oAscError.ID.ForceSaveButton: - config.msg = this.errorForceSave; - break; - case Asc.c_oAscError.ID.ForceSaveTimeout: config.msg = this.errorForceSave; - console.warn(config.msg); + config.maxwidth = 600; break; case Asc.c_oAscError.ID.DataEncrypted: @@ -1677,10 +1674,8 @@ define([ }, this); } - if (id !== Asc.c_oAscError.ID.ForceSaveTimeout) { - if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value=' + id + ']').length<1) - Common.UI.alert(config).$window.attr('data-value', id); - } + if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value=' + id + ']').length<1) + Common.UI.alert(config).$window.attr('data-value', id); (id!==undefined) && Common.component.Analytics.trackEvent('Internal Error', id.toString()); },