Commit dae18a25 authored by Jonathon Duerig's avatar Jonathon Duerig

Fix to previous revision.

parent 03ec190a
...@@ -68,8 +68,8 @@ function StatusWatchCallBack(uuid, json) ...@@ -68,8 +68,8 @@ function StatusWatchCallBack(uuid, json)
if (status != StatusWatchCallBack.laststatus) { if (status != StatusWatchCallBack.laststatus) {
status_html = status; status_html = status;
var bgtype = ''; var bgtype = "";
var statustext = ''; var statustext = "Please wait while we get your experiment ready";
if (status == 'provisioned') { if (status == 'provisioned') {
$("#quickvm_progress_bar").width("66%"); $("#quickvm_progress_bar").width("66%");
...@@ -106,7 +106,9 @@ function StatusWatchCallBack(uuid, json) ...@@ -106,7 +106,9 @@ function StatusWatchCallBack(uuid, json)
$("#extend_button").prop("disabled", true); $("#extend_button").prop("disabled", true);
StartCountdownClock.stop = 0; StartCountdownClock.stop = 0;
} }
$("#statusmessage").addClass(bgtype).html(statustext); $("#statusmessage").html(statustext);
$("#statusmessage-container").attr('class', bgtype);
console.log('setting statustext to ', statustext);
$("#quickvm_status").html(status_html); $("#quickvm_status").html(status_html);
} }
StatusWatchCallBack.laststatus = status; StatusWatchCallBack.laststatus = status;
......
...@@ -229,7 +229,7 @@ echo "<div class='panel panel-default'>\n"; ...@@ -229,7 +229,7 @@ echo "<div class='panel panel-default'>\n";
echo "<div class='panel-body'>\n"; echo "<div class='panel-body'>\n";
echo "<table class='table table-condensed' $style>\n"; echo "<table class='table table-condensed' $style>\n";
echo "<tr>\n"; echo "<tr>\n";
echo "<td colspan=2 $style class='$bgtype'>\n"; echo "<td id='statusmessage-container' colspan=2 $style class='$bgtype'>\n";
echo "<h4 id='statusmessage'>$statustext</h4>\n"; echo "<h4 id='statusmessage'>$statustext</h4>\n";
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";
......
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