From 92b1cfa939aa7b3cc581ace00c7b38c8ab9e0b63 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Fri, 25 May 2007 22:30:03 +0000 Subject: - Make about box visible on all main pages. --- javascript/vdr_status.js | 58 ++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'javascript') 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"); +} -- cgit v1.2.3