This commit is contained in:
Anna Sudnitsina 2018-03-22 18:15:14 +03:00
parent efb3f7bbf9
commit cfdfa99d8f

View File

@ -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) {