diff --git a/static/rbmd/script.js b/static/rbmd/script.js index 6b3f5d0..e46b2e7 100644 --- a/static/rbmd/script.js +++ b/static/rbmd/script.js @@ -183,11 +183,11 @@ function openNode(evt, nodeName) { selected_node = nodeName; x = document.getElementsByClassName("node"); tablinks = document.getElementsByClassName("tablink"); - console.log(selected_node); - console.log(deadNode); - console.log(selected_node != deadNode); + $('#showDeadlyDetails').text('Show details'); if (selected_node != deadNode) { - $('#details').css("border", "2px solid #f44336"); + $('#details').css("border", "2px solid #f44336").css("display", "block"); + } else { + $('#details').css("border", "").css("display", "block"); } // if (selected_node == 'dead') { // // if (selected_node == deadNode) { @@ -201,8 +201,8 @@ function openNode(evt, nodeName) { // } // // displayData(a); // } else { - $('#showDeadlyDetails').text('Show details'); - $('#details').css("border", "").css("display", "block"); + + displayData(a); // } }