This commit is contained in:
Anna Sudnitsina 2018-03-21 13:41:29 +00:00
parent f922deb5cf
commit 57d29ef0a3
2 changed files with 6 additions and 4 deletions

View File

@ -54,10 +54,11 @@ function unmount(a, b, c) {
function displayData(a){
$("#status").html("<p>"+a.health+"</p>");
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");

View File

@ -39,7 +39,7 @@
<div class="w3-col m9" >
<div class="w3-container" id="statusContainer">
<div class="w3-padding w3-display-left" id="status">Status... </div>
<a href="javascript:void(0)" class="w3-right" id="showDeadlyDetails">
<a href="javascript:void(0)" class="w3-right" id="showDeadlyDetails" onclick="openNode(event, deadNode)">
Show details
</a>
<a href="javascript:void(0)" class="w3-right" id="resolve" onClick="resolve()">