diff options
-rw-r--r-- | javascript/vdr_status.js | 58 | ||||
-rw-r--r-- | pages/menu.ecpp | 2 | ||||
-rw-r--r-- | pages/remote.ecpp | 1 |
3 files changed, 31 insertions, 30 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"); +} diff --git a/pages/menu.ecpp b/pages/menu.ecpp index 9002c04..2791b2d 100644 --- a/pages/menu.ecpp +++ b/pages/menu.ecpp @@ -65,10 +65,10 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); </div> </div> </div> +% } <div style="display:none;"> <& pageelems.about_tt_box &> </div> -% } <%def setactive> <%args> diff --git a/pages/remote.ecpp b/pages/remote.ecpp index 519600b..bbe51ae 100644 --- a/pages/remote.ecpp +++ b/pages/remote.ecpp @@ -21,6 +21,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); <head> <title>VDR-Live - <$ pageTitle $></title> <link rel="stylesheet" type="text/css" href="/styles.css" /> + <& tooltip.javascript var=("domTT_styleClass") value=("domTTepg") &> <& pageelems.ajax_js &> <script type="text/javascript"><!-- var newImg = new Image(); |