Show alert for c_oAscError.ID.ForceSaveTimeout error

This commit is contained in:
Julia Radzhabova 2021-04-08 12:59:44 +03:00
parent 1cb895c5b9
commit f4953e8b99
3 changed files with 9 additions and 24 deletions

View file

@ -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());
},

View file

@ -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());
},

View file

@ -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());
},