From 57d29ef0a3ea2ce97e35ff80cd442c9ca4bb145d Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 21 Mar 2018 13:41:29 +0000 Subject: [PATCH] upd --- static/rbmd/script.js | 8 +++++--- templates/rbmd/index.html | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/static/rbmd/script.js b/static/rbmd/script.js index fa76dc2..21dafef 100644 --- a/static/rbmd/script.js +++ b/static/rbmd/script.js @@ -54,10 +54,11 @@ function unmount(a, b, c) { function displayData(a){ $("#status").html("

"+a.health+"

"); if (a.health == 'deadly.') { - // var dead_node = a.deadlyreason["node"]; - // $('#showDeadlyDetails').on('click', openNode(event, deadNode)) + deadNode = a.deadlyreason["node"]; + //$('#showDeadlyDetails').click(event, openNode(event, dead_node)) $('#showDeadlyDetails').css("display","block"); - +console.log('hui'); +console.log(a.deadlyreason["node"]); $('#resolve').css("display","block"); $("#mountFormTrigger").addClass("w3-disabled") @@ -146,6 +147,7 @@ function displayData(a){ } function openNode(evt, nodeName) { +console.log(nodeName); var i, x, tablinks; selected_node = nodeName; x = document.getElementsByClassName("node"); diff --git a/templates/rbmd/index.html b/templates/rbmd/index.html index be303a8..30c958f 100644 --- a/templates/rbmd/index.html +++ b/templates/rbmd/index.html @@ -39,7 +39,7 @@