Commit 3d1cb5df authored by Jonathon Duerig's avatar Jonathon Duerig

Color the status text

parent 5a98f198
......@@ -107,8 +107,9 @@ function StatusWatchCallBack(uuid, json)
StartCountdownClock.stop = 0;
}
$("#statusmessage").html(statustext);
$("#statusmessage-container").attr('class', bgtype);
console.log('setting statustext to ', statustext);
$("#statusmessage-container")
.removeClass('bg-success bg-danger')
.addClass(bgtype);
$("#quickvm_status").html(status_html);
}
StatusWatchCallBack.laststatus = status;
......
......@@ -229,8 +229,8 @@ echo "<div class='panel panel-default'>\n";
echo "<div class='panel-body'>\n";
echo "<table class='table table-condensed' $style>\n";
echo "<tr>\n";
echo "<td id='statusmessage-container' colspan=2 $style>\n";
echo "<h4 id='statusmessage' class='$bgtype'>$statustext</h4>\n";
echo "<td id='statusmessage-container' colspan=2 $style class='$bgtype'>\n";
echo "<h4 id='statusmessage'>$statustext</h4>\n";
echo "</td>\n";
echo "</tr>\n";
if ($spin) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment