This commit is contained in:
Anna Sudnitsina 2018-03-21 16:18:24 +03:00
parent c1d8537445
commit 3f40802e55

View File

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