[DE] Handle ComplexFieldEmptyTOC error
This commit is contained in:
parent
19bfe820b9
commit
481151875d
|
@ -1866,24 +1866,24 @@ define([
|
||||||
config.msg = (this.appOptions.isDesktopApp && this.appOptions.isOffline) ? this.errorEditingSaveas : this.errorEditingDownloadas;
|
config.msg = (this.appOptions.isDesktopApp && this.appOptions.isOffline) ? this.errorEditingSaveas : this.errorEditingDownloadas;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Asc.c_oAscError.ID.MailToClientMissing:
|
case Asc.c_oAscError.ID.MailToClientMissing:
|
||||||
config.msg = this.errorEmailClient;
|
config.msg = this.errorEmailClient;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
|
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
|
||||||
config.msg = this.errorFileSizeExceed;
|
config.msg = this.errorFileSizeExceed;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Asc.c_oAscError.ID.UpdateVersion:
|
case Asc.c_oAscError.ID.UpdateVersion:
|
||||||
config.msg = this.errorUpdateVersionOnDisconnect;
|
config.msg = this.errorUpdateVersionOnDisconnect;
|
||||||
config.maxwidth = 600;
|
config.maxwidth = 600;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Asc.c_oAscError.ID.DirectUrl:
|
case Asc.c_oAscError.ID.DirectUrl:
|
||||||
config.msg = this.errorDirectUrl;
|
config.msg = this.errorDirectUrl;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Asc.c_oAscError.ID.CannotCompareInCoEditing:
|
case Asc.c_oAscError.ID.CannotCompareInCoEditing:
|
||||||
config.msg = this.errorCompare;
|
config.msg = this.errorCompare;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1903,6 +1903,10 @@ define([
|
||||||
config.msg = this.errorLoadingFont;
|
config.msg = this.errorLoadingFont;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Asc.c_oAscError.ID.ComplexFieldEmptyTOC:
|
||||||
|
config.msg = this.errorEmptyTOC;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
|
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
|
||||||
break;
|
break;
|
||||||
|
@ -3130,7 +3134,8 @@ define([
|
||||||
textDisconnect: 'Connection is lost',
|
textDisconnect: 'Connection is lost',
|
||||||
textReconnect: 'Connection is restored',
|
textReconnect: 'Connection is restored',
|
||||||
errorLang: 'The interface language is not loaded.<br>Please contact your Document Server administrator.',
|
errorLang: 'The interface language is not loaded.<br>Please contact your Document Server administrator.',
|
||||||
errorLoadingFont: 'Fonts are not loaded.<br>Please contact your Document Server administrator.'
|
errorLoadingFont: 'Fonts are not loaded.<br>Please contact your Document Server administrator.',
|
||||||
|
errorEmptyTOC: 'There\'s no table of contents to update. You can insert one from the References tab.'
|
||||||
}
|
}
|
||||||
})(), DE.Controllers.Main || {}))
|
})(), DE.Controllers.Main || {}))
|
||||||
});
|
});
|
|
@ -564,6 +564,7 @@
|
||||||
"DE.Controllers.Main.errorUserDrop": "The file cannot be accessed right now.",
|
"DE.Controllers.Main.errorUserDrop": "The file cannot be accessed right now.",
|
||||||
"DE.Controllers.Main.errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
|
"DE.Controllers.Main.errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
|
||||||
"DE.Controllers.Main.errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but will not be able to download or print it until the connection is restored and page is reloaded.",
|
"DE.Controllers.Main.errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but will not be able to download or print it until the connection is restored and page is reloaded.",
|
||||||
|
"DE.Controllers.Main.errorEmptyTOC": "There's no table of contents to update. You can insert one from the References tab.",
|
||||||
"DE.Controllers.Main.leavePageText": "You have unsaved changes in this document. Click \"Stay on This Page\", then \"Save\" to save them. Click \"Leave This Page\" to discard all the unsaved changes.",
|
"DE.Controllers.Main.leavePageText": "You have unsaved changes in this document. Click \"Stay on This Page\", then \"Save\" to save them. Click \"Leave This Page\" to discard all the unsaved changes.",
|
||||||
"DE.Controllers.Main.leavePageTextOnClose": "All unsaved changes in this document will be lost.<br> Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.",
|
"DE.Controllers.Main.leavePageTextOnClose": "All unsaved changes in this document will be lost.<br> Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.",
|
||||||
"DE.Controllers.Main.loadFontsTextText": "Loading data...",
|
"DE.Controllers.Main.loadFontsTextText": "Loading data...",
|
||||||
|
|
Loading…
Reference in a new issue