This commit is contained in:
Anna Sudnitsina 2018-03-22 17:02:45 +03:00
parent 56b401b976
commit a3de790ec7

View File

@ -67,19 +67,18 @@ function displayData(a){
$("#statusContainer:contains('alive')").css("background-color", "#4CAF50");
$("#statusContainer:contains('resizing')").css("background-color", "#ff9800");
$("#statusContainer:contains('deadly')").css("background-color", "#f44336");;
if (node2 != undefined) {
var one = a.quorum.map(function(item) {return item.node});
var two = node2.quorum.map(function(item) {return item.node});
if (JSON.stringify(one) != JSON.stringify(two)) {
console.log('upd');
node2 = a;
w3DisplayData("id01", node2);
}
} else {
console.log('upd');
// if (node2 != undefined) {
// var one = a.quorum.map(function(item) {return item.node});
// var two = node2.quorum.map(function(item) {return item.node});
// if (JSON.stringify(one) != JSON.stringify(two)) {
// node2 = a;
// w3DisplayData("id01", node2);
// }
// } else {
node2 = a;
w3DisplayData("id01", node2);
}
// }
if ($('.tablink').css('display') != 'block') {
$('.tablink').css('display', 'block');
}