diff --git a/static/rbmd/script.js b/static/rbmd/script.js index f543938..baa9a81 100644 --- a/static/rbmd/script.js +++ b/static/rbmd/script.js @@ -17,6 +17,7 @@ $(function() { }) */ }) + $('.tablink').css('display', 'block') }); function resolve() { @@ -68,7 +69,7 @@ function displayData(a){ $("#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}) || 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; @@ -80,9 +81,9 @@ function displayData(a){ w3DisplayData("id01", node2); } - if ($('.tablink').css('display') != 'block') { - $('.tablink').css('display', 'block'); - } + // if ($('.tablink').css('display') != 'block') { + // $('.tablink').css('display', 'block'); + // } if (selected_node != undefined && selected_node != 'dead'){ //a.quorum.forEach(function(item) {if (item.node == selected_node) { console.log(item.node)}}) var selected_node_body = a.quorum.find(function(node) {