Commit 3a277dca authored by Leigh B Stoller's avatar Leigh B Stoller

Minor changes to better deal with server temporarily not being available.

parent 42176a9d
...@@ -591,7 +591,8 @@ $(function () ...@@ -591,7 +591,8 @@ $(function ()
else if (instanceStatus == "unknown") { else if (instanceStatus == "unknown") {
status_html = "<font color=red>" + instanceStatus + "</font>"; status_html = "<font color=red>" + instanceStatus + "</font>";
bgtype = "panel-warning"; bgtype = "panel-warning";
status_message = "The server is temporarily unavailable!"; status_message = "The server is temporarily unavailable. " +
"Please check back later.";
} }
if (!status_collapsed) { if (!status_collapsed) {
$("#status_message").html(status_message); $("#status_message").html(status_message);
...@@ -1657,11 +1658,14 @@ $(function () ...@@ -1657,11 +1658,14 @@ $(function ()
// //
// Do not show in the terminating or terminated state. // Do not show in the terminating or terminated state.
// //
if (lastStatus == "terminated" || lastStatus == "terminating" || if (lastStatus == "terminated" || lastStatus == "terminating") {
lastStatus == "unknown") {
alert("Your experiment is no longer active."); alert("Your experiment is no longer active.");
return; return;
} }
if (lastStatus == "unknown") {
alert("Server is temporarily unavailable. Try again later.");
return;
}
/* /*
* While shell and console can handle a list, I am not actually * While shell and console can handle a list, I am not actually
......
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