From 54df2198fb6737ee1f52fdaa71dd92e4bf98d557 Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 22 Mar 2018 18:09:38 +0300 Subject: [PATCH] upd --- static/rbmd/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/rbmd/script.js b/static/rbmd/script.js index 5f91356..185c262 100644 --- a/static/rbmd/script.js +++ b/static/rbmd/script.js @@ -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");