From 3f40802e55ad779f3f772429da2eb60d559346c2 Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 21 Mar 2018 16:18:24 +0300 Subject: [PATCH] u --- static/rbmd/script.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/static/rbmd/script.js b/static/rbmd/script.js index d501f4d..ed54e4b 100644 --- a/static/rbmd/script.js +++ b/static/rbmd/script.js @@ -150,17 +150,17 @@ function openNode(evt, nodeName) { selected_node = nodeName; x = document.getElementsByClassName("node"); tablinks = document.getElementsByClassName("tablink"); - // if (selected_node == 'dead') { - if (selected_node == deadNode) { + if (selected_node == 'dead') { + // if (selected_node == deadNode) { $('#details').css("border", "2px solid #f44336"); - // if ($('#showDeadlyDetails').html() == "Show details") { - // $('#details').css("display", "block"); - // $('#showDeadlyDetails').text('Hide details'); - // } else { - // $('#details').css("display", "none"); - // $('#showDeadlyDetails').text('Show details'); - // } - displayData(a); + if ($('#showDeadlyDetails').html() == "Show details") { + $('#details').css("display", "block"); + $('#showDeadlyDetails').text('Hide details'); + } else { + $('#details').css("display", "none"); + $('#showDeadlyDetails').text('Show details'); + } + // displayData(a); } else { $('#showDeadlyDetails').text('Show details'); $('#details').css("border", "").css("display", "block"); displayData(a);