This commit is contained in:
Anna Sudnitsina 2018-03-22 18:09:38 +03:00
parent a6a1e60d23
commit 54df2198fb

View File

@ -70,7 +70,7 @@ function displayData(a){
// if (node2 != undefined) {
var one = a.quorum.map(function(item) {return item.node}) || undefined;
var two = node2.quorum.map(function(item) {return item.node});
if (JSON.stringify(one) != JSON.stringify(two)) {
if (JSON.stringify(one) != JSON.stringify(two) || node2 != undefined) {
node2 = a;
w3DisplayData("id01", node2);
}
@ -156,7 +156,7 @@ function displayData(a){
}
function openNode(evt, nodeName) {
console.log(nodeName);
// console.log(nodeName);
var i, x, tablinks;
selected_node = nodeName;
x = document.getElementsByClassName("node");