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:
Henry Castro 2020-12-09 10:44:36 -04:00
parent e71327b6ad
commit 25e5119f31

View file

@ -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;