[DE] Change text for empty list in the navigation panel in viewer.
This commit is contained in:
parent
0ad0d9fb2e
commit
7e20c7eb94
|
@ -803,6 +803,12 @@ define([
|
||||||
|
|
||||||
setEmptyText: function(emptyText) {
|
setEmptyText: function(emptyText) {
|
||||||
this.emptyText = 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() {
|
alignPosition: function() {
|
||||||
|
|
|
@ -103,6 +103,8 @@ define([
|
||||||
setMode: function(mode) {
|
setMode: function(mode) {
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
this.canUseViwerNavigation = this.mode.canUseViwerNavigation;
|
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;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,8 @@ define([
|
||||||
txtCollapse: 'Collapse all',
|
txtCollapse: 'Collapse all',
|
||||||
txtExpandToLevel: 'Expand to level...',
|
txtExpandToLevel: 'Expand to level...',
|
||||||
txtEmpty: 'There are no headings in the document.<br>Apply a heading style to the text so that it appears in the table of contents.',
|
txtEmpty: 'There are no headings in the document.<br>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 || {}));
|
}, DE.Views.Navigation || {}));
|
||||||
});
|
});
|
|
@ -2125,6 +2125,7 @@
|
||||||
"DE.Views.Navigation.txtDemote": "Demote",
|
"DE.Views.Navigation.txtDemote": "Demote",
|
||||||
"DE.Views.Navigation.txtEmpty": "There are no headings in the document.<br>Apply a heading style to the text so that it appears in the table of contents.",
|
"DE.Views.Navigation.txtEmpty": "There are no headings in the document.<br>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.txtEmptyItem": "Empty Heading",
|
||||||
|
"DE.Views.Navigation.txtEmptyViewer": "There are no headings in the document.",
|
||||||
"DE.Views.Navigation.txtExpand": "Expand all",
|
"DE.Views.Navigation.txtExpand": "Expand all",
|
||||||
"DE.Views.Navigation.txtExpandToLevel": "Expand to level",
|
"DE.Views.Navigation.txtExpandToLevel": "Expand to level",
|
||||||
"DE.Views.Navigation.txtHeadingAfter": "New heading after",
|
"DE.Views.Navigation.txtHeadingAfter": "New heading after",
|
||||||
|
|
|
@ -2117,6 +2117,7 @@
|
||||||
"DE.Views.Navigation.txtCollapse": "Свернуть все",
|
"DE.Views.Navigation.txtCollapse": "Свернуть все",
|
||||||
"DE.Views.Navigation.txtDemote": "Понизить уровень",
|
"DE.Views.Navigation.txtDemote": "Понизить уровень",
|
||||||
"DE.Views.Navigation.txtEmpty": "В документе нет заголовков.<br>Примените стиль заголовка к тексту, чтобы он появился в оглавлении.",
|
"DE.Views.Navigation.txtEmpty": "В документе нет заголовков.<br>Примените стиль заголовка к тексту, чтобы он появился в оглавлении.",
|
||||||
|
"DE.Views.Navigation.txtEmptyViewer": "В документе нет заголовков.",
|
||||||
"DE.Views.Navigation.txtEmptyItem": "Пустой заголовок",
|
"DE.Views.Navigation.txtEmptyItem": "Пустой заголовок",
|
||||||
"DE.Views.Navigation.txtExpand": "Развернуть все",
|
"DE.Views.Navigation.txtExpand": "Развернуть все",
|
||||||
"DE.Views.Navigation.txtExpandToLevel": "Развернуть до уровня",
|
"DE.Views.Navigation.txtExpandToLevel": "Развернуть до уровня",
|
||||||
|
|
Loading…
Reference in a new issue