X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a421b30397eaa30b23a389cc9018ad29bf987a28..55da6d6c73cdb1627cf71e7419eb3cc2f5e53c08:/src/editor/modules/nodeFamilyTree/template.html diff --git a/src/editor/modules/nodeFamilyTree/template.html b/src/editor/modules/nodeFamilyTree/template.html index 9bccfc3..886df06 100644 --- a/src/editor/modules/nodeFamilyTree/template.html +++ b/src/editor/modules/nodeFamilyTree/template.html @@ -8,9 +8,9 @@ <td rowspan="0">poniżej</td> <td> <ul> - <% if(!children || children.length === 0) { %>-<% } else { %> - <% children.forEach(function(child) { %> - <li><% if(child.bold) { %><strong><% } %><a href="#"><%= child.repr %></a><% if(child.bold) { %></strong><% } %></li> + <% if(!contents || contents.length === 0) { %>-<% } else { %> + <% contents.forEach(function(element) { %> + <li><% if(element.bold) { %><strong><% } %><a href="#"><%= element.repr %></a><% if(element.bold) { %></strong><% } %></li> <% }); %> <% } %> </ul>