unmount fix

This commit is contained in:
Anna Sudnitsina 2017-09-01 21:59:50 +03:00
parent 50bf417eae
commit 2f4182dbe1

View File

@ -52,8 +52,7 @@ $(function() {
$('#details').css("border", "0"); $('#details').css("border", "0");
} }
console.log(a.leader); console.log(a.leader);
var lead = a.leader; $("#leader").html("").html(a.leader);
$("#leader").html(lead);
$( "#statusContainer:contains('alive')" ).css("background-color", "#4CAF50" ); $( "#statusContainer:contains('alive')" ).css("background-color", "#4CAF50" );
$( "#statusContainer:contains('resizing')" ).css("background-color", "#ff9800" ); $( "#statusContainer:contains('resizing')" ).css("background-color", "#ff9800" );
$( "#statusContainer:contains('deadly')" ).css("background-color", "#f44336" );; $( "#statusContainer:contains('deadly')" ).css("background-color", "#f44336" );;