diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js
index 93d5356e0..1950a8d9d 100644
--- a/apps/documenteditor/main/app/controller/Main.js
+++ b/apps/documenteditor/main/app/controller/Main.js
@@ -1866,24 +1866,24 @@ define([
config.msg = (this.appOptions.isDesktopApp && this.appOptions.isOffline) ? this.errorEditingSaveas : this.errorEditingDownloadas;
break;
- case Asc.c_oAscError.ID.MailToClientMissing:
+ case Asc.c_oAscError.ID.MailToClientMissing:
config.msg = this.errorEmailClient;
break;
- case Asc.c_oAscError.ID.ConvertationOpenLimitError:
+ case Asc.c_oAscError.ID.ConvertationOpenLimitError:
config.msg = this.errorFileSizeExceed;
break;
- case Asc.c_oAscError.ID.UpdateVersion:
+ case Asc.c_oAscError.ID.UpdateVersion:
config.msg = this.errorUpdateVersionOnDisconnect;
config.maxwidth = 600;
break;
- case Asc.c_oAscError.ID.DirectUrl:
+ case Asc.c_oAscError.ID.DirectUrl:
config.msg = this.errorDirectUrl;
break;
- case Asc.c_oAscError.ID.CannotCompareInCoEditing:
+ case Asc.c_oAscError.ID.CannotCompareInCoEditing:
config.msg = this.errorCompare;
break;
@@ -1903,6 +1903,10 @@ define([
config.msg = this.errorLoadingFont;
break;
+ case Asc.c_oAscError.ID.ComplexFieldEmptyTOC:
+ config.msg = this.errorEmptyTOC;
+ break;
+
default:
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
break;
@@ -3130,7 +3134,8 @@ define([
textDisconnect: 'Connection is lost',
textReconnect: 'Connection is restored',
errorLang: 'The interface language is not loaded.
Please contact your Document Server administrator.',
- errorLoadingFont: 'Fonts are not loaded.
Please contact your Document Server administrator.'
+ errorLoadingFont: 'Fonts are not loaded.
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 || {}))
});
\ No newline at end of file
diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json
index e7c26a0a8..c894772b8 100644
--- a/apps/documenteditor/main/locale/en.json
+++ b/apps/documenteditor/main/locale/en.json
@@ -564,6 +564,7 @@
"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.errorViewerDisconnect": "Connection is lost. You can still view the document,
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.leavePageTextOnClose": "All unsaved changes in this document will be lost.
Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.",
"DE.Controllers.Main.loadFontsTextText": "Loading data...",