[TASK] Switch stats and neighbours in node infobox
Images has no fixed height and this avoids jumping neighbours list.
This commit is contained in:
parent
39f40a3dcf
commit
92272d87ad
@ -248,15 +248,6 @@ define(['sorttable', 'virtual-dom', 'chroma-js', 'moment', 'helper'],
|
|||||||
|
|
||||||
el.appendChild(attributes);
|
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) {
|
if (d.neighbours.length > 0) {
|
||||||
var h3 = document.createElement('h3');
|
var h3 = document.createElement('h3');
|
||||||
h3.textContent = _.t('node.link', d.neighbours.length) + '(' + d.neighbours.length + ')';
|
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);
|
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));
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user