[TASK] Switch stats and neighbours in node infobox

Images has no fixed height and this avoids jumping neighbours list.
This commit is contained in:
Xaver Maierhofer 2017-02-05 23:15:50 +01:00 committed by Xaver Maierhofer
parent 39f40a3dcf
commit 92272d87ad
1 changed files with 9 additions and 9 deletions

View File

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