[DE] Check empty items in the table of contents.
This commit is contained in:
parent
db8840f4ec
commit
6f7d5cc533
|
@ -52,6 +52,7 @@ define([
|
||||||
name: '',
|
name: '',
|
||||||
isNotHeader: false,
|
isNotHeader: false,
|
||||||
hasSubItems: false,
|
hasSubItems: false,
|
||||||
|
isEmptyItem: false,
|
||||||
isExpanded: true,
|
isExpanded: true,
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
selected: false,
|
selected: false,
|
||||||
|
@ -168,10 +169,10 @@ define([
|
||||||
'<% if (hasSubItems) { %>',
|
'<% if (hasSubItems) { %>',
|
||||||
'<div class="tree-caret img-commonctrl ' + '<% if (!isExpanded) { %>' + 'up' + '<% } %>' + '" style="margin-left: <%= level*16 %>px;"></div>',
|
'<div class="tree-caret img-commonctrl ' + '<% if (!isExpanded) { %>' + 'up' + '<% } %>' + '" style="margin-left: <%= level*16 %>px;"></div>',
|
||||||
'<% } %>',
|
'<% } %>',
|
||||||
'<% if (name!=="") { %>',
|
'<% if (isEmptyItem) { %>',
|
||||||
' <div class="name <% if (isNotHeader) { %>' + 'not-header' + '<% } %>"><%= name %></div>',
|
'<div class="name empty">' + options.emptyItemText + '</div>',
|
||||||
'<% } else { %>',
|
'<% } else { %>',
|
||||||
' <div class="name empty">' + options.emptyItemText + '</div>',
|
'<div class="name <% if (isNotHeader) { %>' + 'not-header' + '<% } %>"><%= name %></div>',
|
||||||
'<% } %>',
|
'<% } %>',
|
||||||
'</div>'
|
'</div>'
|
||||||
].join(''));
|
].join(''));
|
||||||
|
|
|
@ -109,7 +109,8 @@ define([
|
||||||
arr.push(new Common.UI.TreeViewModel({
|
arr.push(new Common.UI.TreeViewModel({
|
||||||
name : this._navigationObject.get_Text(i),
|
name : this._navigationObject.get_Text(i),
|
||||||
level: level,
|
level: level,
|
||||||
index: i
|
index: i,
|
||||||
|
isEmptyItem: this._navigationObject.isEmptyItem(i)
|
||||||
}));
|
}));
|
||||||
prev_level = level;
|
prev_level = level;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue