jsdialog: avoid to insert the "<dummy>" entry
Apparently the treeview control in server side, create a "<dummy>" entry when no children exist. Change-Id: If2afdd8aed7f8090ed33a8b77a96447394cad7bf Signed-off-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
parent
e71327b6ad
commit
25e5119f31
1 changed files with 3 additions and 0 deletions
|
@ -1580,6 +1580,9 @@ L.Control.JSDialogBuilder = L.Control.extend({
|
|||
},
|
||||
|
||||
_treelistboxEntry: function (parentContainer, treeViewData, entry, builder) {
|
||||
if (entry.text == '<dummy>')
|
||||
return;
|
||||
|
||||
var li = L.DomUtil.create('li', builder.options.cssClass, parentContainer);
|
||||
li.draggable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue