diff --git a/apps/common/main/lib/component/DataView.js b/apps/common/main/lib/component/DataView.js index 26fefc7384..dbd240ec81 100644 --- a/apps/common/main/lib/component/DataView.js +++ b/apps/common/main/lib/component/DataView.js @@ -803,6 +803,12 @@ define([ setEmptyText: function(emptyText) { this.emptyText = emptyText; + + if (this.store.length < 1) { + var el = $(this.el).find('.inner').addBack().filter('.inner').find('.empty-text td'); + if ( el.length>0 ) + el.text(this.emptyText); + } }, alignPosition: function() { diff --git a/apps/documenteditor/main/app/controller/Navigation.js b/apps/documenteditor/main/app/controller/Navigation.js index b36373da3f..bbb09fca94 100644 --- a/apps/documenteditor/main/app/controller/Navigation.js +++ b/apps/documenteditor/main/app/controller/Navigation.js @@ -103,6 +103,8 @@ define([ setMode: function(mode) { this.mode = mode; this.canUseViwerNavigation = this.mode.canUseViwerNavigation; + if (this.panelNavigation && this.panelNavigation.viewNavigationList) + this.panelNavigation.viewNavigationList.setEmptyText(this.mode.isEdit ? this.panelNavigation.txtEmpty : this.panelNavigation.txtEmptyViewer); return this; }, diff --git a/apps/documenteditor/main/app/view/Navigation.js b/apps/documenteditor/main/app/view/Navigation.js index 68269cf722..dd1a396b1b 100644 --- a/apps/documenteditor/main/app/view/Navigation.js +++ b/apps/documenteditor/main/app/view/Navigation.js @@ -158,7 +158,8 @@ define([ txtCollapse: 'Collapse all', txtExpandToLevel: 'Expand to level...', txtEmpty: 'There are no headings in the document.
Apply a heading style to the text so that it appears in the table of contents.', - txtEmptyItem: 'Empty Heading' + txtEmptyItem: 'Empty Heading', + txtEmptyViewer: 'There are no headings in the document.' }, DE.Views.Navigation || {})); }); \ No newline at end of file diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json index de8340b16e..e0a1dedac9 100644 --- a/apps/documenteditor/main/locale/en.json +++ b/apps/documenteditor/main/locale/en.json @@ -2125,6 +2125,7 @@ "DE.Views.Navigation.txtDemote": "Demote", "DE.Views.Navigation.txtEmpty": "There are no headings in the document.
Apply a heading style to the text so that it appears in the table of contents.", "DE.Views.Navigation.txtEmptyItem": "Empty Heading", + "DE.Views.Navigation.txtEmptyViewer": "There are no headings in the document.", "DE.Views.Navigation.txtExpand": "Expand all", "DE.Views.Navigation.txtExpandToLevel": "Expand to level", "DE.Views.Navigation.txtHeadingAfter": "New heading after", diff --git a/apps/documenteditor/main/locale/ru.json b/apps/documenteditor/main/locale/ru.json index 69afbaccfe..fa57ebaeca 100644 --- a/apps/documenteditor/main/locale/ru.json +++ b/apps/documenteditor/main/locale/ru.json @@ -2117,6 +2117,7 @@ "DE.Views.Navigation.txtCollapse": "Свернуть все", "DE.Views.Navigation.txtDemote": "Понизить уровень", "DE.Views.Navigation.txtEmpty": "В документе нет заголовков.
Примените стиль заголовка к тексту, чтобы он появился в оглавлении.", + "DE.Views.Navigation.txtEmptyViewer": "В документе нет заголовков.", "DE.Views.Navigation.txtEmptyItem": "Пустой заголовок", "DE.Views.Navigation.txtExpand": "Развернуть все", "DE.Views.Navigation.txtExpandToLevel": "Развернуть до уровня",