diff --git a/lib/infobox/node.js b/lib/infobox/node.js index b70bfd2..2996ea4 100644 --- a/lib/infobox/node.js +++ b/lib/infobox/node.js @@ -248,15 +248,6 @@ define(['sorttable', 'virtual-dom', 'chroma-js', 'moment', 'helper'], el.appendChild(attributes); - if (config.nodeInfos) { - config.nodeInfos.forEach(function (nodeInfo) { - var h4 = document.createElement('h4'); - h4.textContent = nodeInfo.name; - el.appendChild(h4); - el.appendChild(showStatImg(nodeInfo, d)); - }); - } - if (d.neighbours.length > 0) { var h3 = document.createElement('h3'); h3.textContent = _.t('node.link', d.neighbours.length) + '(' + d.neighbours.length + ')'; @@ -301,5 +292,14 @@ define(['sorttable', 'virtual-dom', 'chroma-js', 'moment', 'helper'], el.appendChild(table.el); } + + if (config.nodeInfos) { + config.nodeInfos.forEach(function (nodeInfo) { + var h4 = document.createElement('h4'); + h4.textContent = nodeInfo.name; + el.appendChild(h4); + el.appendChild(showStatImg(nodeInfo, d)); + }); + } }; });