summaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-05-25 22:30:03 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-05-25 22:30:03 +0000
commit92b1cfa939aa7b3cc581ace00c7b38c8ab9e0b63 (patch)
tree4c899b2bdf6ebf5ee5718cb93bad6aece8f0a1e1 /javascript
parent592d6dbb171783910d3b5da8f0899dc612082cca (diff)
downloadvdr-plugin-live-92b1cfa939aa7b3cc581ace00c7b38c8ab9e0b63.tar.gz
vdr-plugin-live-92b1cfa939aa7b3cc581ace00c7b38c8ab9e0b63.tar.bz2
- Make about box visible on all main pages.
Diffstat (limited to 'javascript')
-rw-r--r--javascript/vdr_status.js58
1 files changed, 29 insertions, 29 deletions
diff --git a/javascript/vdr_status.js b/javascript/vdr_status.js
index d9505e3..158bc1a 100644
--- a/javascript/vdr_status.js
+++ b/javascript/vdr_status.js
@@ -8,35 +8,6 @@ var vst_timer;
var vst_boxId = null;
var vst_url = null;
-function LiveStatusRequest(url, containerid)
-{
- if (vst_url == null)
- {
- vst_url = url;
- }
- if (vst_boxId == null)
- vst_boxId = containerid;
-
- var status = new LiveAjaxCall("xml", url);
- status.oncomplete = function()
- {
- try {
- LiveStatusShowInfo(this.xml.responseXML, containerid);
- }
- catch (e) {
- LiveStatusReportError(e.message, containerid);
- }
- if (vst_reload)
- vst_timer = window.setTimeout("LiveStatusRequest('" + url + "', '" + containerid + "')", 1000);
- }
- status.onerror = function(message)
- {
- LiveStatusToggleUpdate();
- LiveStatusReportError(message, containerid);
- }
- status.request("update", vst_reload ? "1" : "0");
-}
-
function LiveStatusShowInfo(xmldoc, containerId)
{
var infoType = xmldoc.getElementsByTagName('type').item(0);
@@ -148,3 +119,32 @@ function LiveStatusToggleUpdate()
img.src = vst_reload ? 'stop_update.png' : 'reload.png';
}
}
+
+function LiveStatusRequest(url, containerid)
+{
+ if (vst_url == null)
+ {
+ vst_url = url;
+ }
+ if (vst_boxId == null)
+ vst_boxId = containerid;
+
+ var status = new LiveAjaxCall("xml", url);
+ status.oncomplete = function()
+ {
+ try {
+ LiveStatusShowInfo(this.xml.responseXML, containerid);
+ }
+ catch (e) {
+ LiveStatusReportError(e.message, containerid);
+ }
+ if (vst_reload)
+ vst_timer = window.setTimeout("LiveStatusRequest('" + url + "', '" + containerid + "')", 1000);
+ }
+ status.onerror = function(message)
+ {
+ LiveStatusToggleUpdate();
+ LiveStatusReportError(message, containerid);
+ }
+ status.request("update", vst_reload ? "1" : "0");
+}