diff --git a/admin-root/hdr.html b/admin-root/hdr.html
index f51ee39d..619190c6 100644
--- a/admin-root/hdr.html
+++ b/admin-root/hdr.html
@@ -22,9 +22,11 @@
+
+
@@ -33,7 +35,7 @@
The best open-source media server for the Roku SoundBridge and iTunes
-

+
- server status
diff --git a/admin-root/index.html b/admin-root/index.html
index 2de691e2..1efb903c 100644
--- a/admin-root/index.html
+++ b/admin-root/index.html
@@ -7,12 +7,14 @@
width: 80ex;
}
#server_stopped_message {
+ position: absolute;
background-color: yellow;
padding: 1em;
- border: 1px solid #8CACBB;
+/* border: 1px solid #8CACBB;*/
font-size: 120%;
margin-bottom: 1em;
z-index: 100;
+
}
#grey_screen {
position: absolute;
@@ -26,8 +28,9 @@
z-index: 10;
}
+
Server Status
-
+
The Firefly server is not running, this page will be inaccessible until you start the server again.
diff --git a/admin-root/status.js b/admin-root/status.js
index 934e1916..5eb2dee4 100644
--- a/admin-root/status.js
+++ b/admin-root/status.js
@@ -16,14 +16,14 @@ var Updater = {
Updater.spinnerTimeout = window.setTimeout(Util.startSpinner,UPDATE_FREQUENCY-1000);
},
update: function () {
- if (Updater.stop) {
- return;
- }
if (Updater.updateTimeout) {
window.clearTimeout(Updater.updateTimeout);
}
if (Updater.spinnerTimeout) {
- window.clearTimeout(Updater.updateTimeout);
+ window.clearTimeout(Updater.spinnerTimeout);
+ }
+ if (Updater.stop) {
+ return;
}
new Ajax.Request('xml-rpc?method=stats',{method: 'get',onComplete: Updater.rsStats});
},
@@ -57,11 +57,12 @@ var Updater = {
}
},
stopServer: function() {
- new Ajax.Request('xml-rpc',{method:'post',parameters: 'method=shutdown',onComplete: Updater.rsStopServer});
Util.stopSpinner();
+ new Ajax.Request('xml-rpc',{method:'post',parameters: 'method=shutdown',onComplete: Updater.rsStopServer});
},
rsStopServer: function(request) {
Updater.stop = true;
+ Updater.update(); // To clear the spinner timeout
Element.show('grey_screen');
Effect.Appear('server_stopped_message');
},