diff --git a/apps/common/main/lib/component/TreeView.js b/apps/common/main/lib/component/TreeView.js index 24e139a25..066f503e5 100644 --- a/apps/common/main/lib/component/TreeView.js +++ b/apps/common/main/lib/component/TreeView.js @@ -52,6 +52,7 @@ define([ name: '', isNotHeader: false, hasSubItems: false, + isEmptyItem: false, isExpanded: true, isVisible: true, selected: false, @@ -168,10 +169,10 @@ define([ '<% if (hasSubItems) { %>', '
', '<% } %>', - '<% if (name!=="") { %>', - '
<%= name %>
', + '<% if (isEmptyItem) { %>', + '
' + options.emptyItemText + '
', '<% } else { %>', - '
' + options.emptyItemText + '
', + '
<%= name %>
', '<% } %>', '' ].join('')); diff --git a/apps/documenteditor/main/app/controller/Navigation.js b/apps/documenteditor/main/app/controller/Navigation.js index 6118ac769..b7f0fd03f 100644 --- a/apps/documenteditor/main/app/controller/Navigation.js +++ b/apps/documenteditor/main/app/controller/Navigation.js @@ -109,7 +109,8 @@ define([ arr.push(new Common.UI.TreeViewModel({ name : this._navigationObject.get_Text(i), level: level, - index: i + index: i, + isEmptyItem: this._navigationObject.isEmptyItem(i) })); prev_level = level; }