summaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-06-13 22:11:44 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-06-13 22:11:44 +0000
commitad1ba059f537239c7c9585dec4b813384adafe21 (patch)
treee56d498ccb532863437f70d2e19b4e04b576315b /javascript
parent21dce4ff58c6e1da3691a874ca03cf77c696cda4 (diff)
downloadvdr-plugin-live-ad1ba059f537239c7c9585dec4b813384adafe21.tar.gz
vdr-plugin-live-ad1ba059f537239c7c9585dec4b813384adafe21.tar.bz2
- show 'user friendly' error message in infobox. Fixes #315
- Tooltip text now independant of update state. Fixes #328
Diffstat (limited to 'javascript')
-rw-r--r--javascript/vdr_status.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/javascript/vdr_status.js b/javascript/vdr_status.js
index 158bc1a..73a20dd 100644
--- a/javascript/vdr_status.js
+++ b/javascript/vdr_status.js
@@ -136,15 +136,17 @@ function LiveStatusRequest(url, containerid)
LiveStatusShowInfo(this.xml.responseXML, containerid);
}
catch (e) {
- LiveStatusReportError(e.message, containerid);
+ var updateMsg = document.getElementById("__infobox_update_err").firstChild.nodeValue;
+ LiveStatusReportError(updateMsg, containerid);
}
if (vst_reload)
vst_timer = window.setTimeout("LiveStatusRequest('" + url + "', '" + containerid + "')", 1000);
}
status.onerror = function(message)
{
+ var requestMsg = document.getElementById("__infobox_request_err").firstChild.nodeValue;
LiveStatusToggleUpdate();
- LiveStatusReportError(message, containerid);
+ LiveStatusReportError(requestMsg, containerid);
}
status.request("update", vst_reload ? "1" : "0");
}