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 ++++++++++++++++++++++++------------------------ pages/menu.ecpp | 2 +- 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"); +% }
<& pageelems.about_tt_box &>
-% } <%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"); VDR-Live - <$ pageTitle $> + <& tooltip.javascript var=("domTT_styleClass") value=("domTTepg") &> <& pageelems.ajax_js &>