summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2013-09-16 11:49:54 +0200
committerM. Voerman <rekordc@gmail.com>2013-09-16 11:49:54 +0200
commita6416b996691954091bec4629a878a4f0b50e694 (patch)
tree754b691a6fb9ff42299ab3946a7d45ba8c92e6b7 /index.html
parentfb6034f71a6f02404cd4a2511ce6811c91df906e (diff)
downloadvdr-vipclient-a6416b996691954091bec4629a878a4f0b50e694.tar.gz
vdr-vipclient-a6416b996691954091bec4629a878a4f0b50e694.tar.bz2
Cleaning up
Diffstat (limited to 'index.html')
-rw-r--r--index.html28
1 files changed, 12 insertions, 16 deletions
diff --git a/index.html b/index.html
index fd3b469..2fe49b8 100644
--- a/index.html
+++ b/index.html
@@ -2570,13 +2570,9 @@ try {
xmlhttp=new XMLHttpRequest();
//
// SmartTVWeb
- xmlhttp.open("GET",(server_ip + recServ + "/deleteTimer?guid=" + timersChan[timerID] + "&dy=" + timersDay[timerID]
- + "&st=" + timersStrt[timerID] + "&sp=" + timersStop[timerID] + "&" + new Date().getTime()),false);
-// smarttvweb delete & restful reading
-// var x = timersID[timerID].split(":");
-// xmlhttp.open("GET",(server_ip + recServ + "/deleteTimer?guid=" + x[0] + "&dy=" + x[2] + "&st=" + x[3] + "&sp=" + x[4] + "&" + new Date().getTime()),false);
-//
-//
+// xmlhttp.open("GET",(server_ip + recServ + "/deleteTimer?guid=" + timersChan[timerID] + "&dy=" + timersDay[timerID]
+// + "&st=" + timersStrt[timerID] + "&sp=" + timersStop[timerID] + "&" + new Date().getTime()),false);
+ xmlhttp.open("GET",(server_ip + recServ + "/deleteTimer?index=" + timersID[timerID] + "&" + new Date().getTime()),false);
xmlhttp.send();
} catch(e) {
@@ -2584,24 +2580,24 @@ try {
}
}
-function activate_timers(thistimer){
+function activate_timers(){
// (De)activate timers.
try {
xmlhttp=new XMLHttpRequest();
- if (timersFlag[thistimer] == "0") {
- xmlhttp.open("GET",(server_ip + recServ + "/activateTimer?index=" + timersID[thistimer] + "&activate=true&" + new Date().getTime()),false);
+ if (timersFlag[timerID] == "0") {
+ xmlhttp.open("GET",(server_ip + recServ + "/activateTimer?index=" + timersID[timerID] + "&activate=true&" + new Date().getTime()),false);
} else {
- xmlhttp.open("GET",(server_ip + recServ + "/activateTimer?index=" + timersID[thistimer] + "&activate=false&" + new Date().getTime()),false);
+ xmlhttp.open("GET",(server_ip + recServ + "/activateTimer?index=" + timersID[timerID] + "&activate=false&" + new Date().getTime()),false);
}
xmlhttp.send();
- if (timersFlag[thistimer] == "0") {
- timers[thistimer] = timers[thistimer].substr(0, 1) + "\uE00C" + timers[thistimer].substr(2);
- timersFlag[thistimer] = "1"
+ if (timersFlag[timerID] == "0") {
+ timers[timerID] = timers[timerID].substr(0, 1) + "\uE00C" + timers[timerID].substr(2);
+ timersFlag[timerID] = "1"
} else {
- timers[thistimer] = timers[thistimer].substr(0, 1) + "\uE003" + timers[thistimer].substr(2);
- timersFlag[thistimer] = "0"
+ timers[timerID] = timers[timerID].substr(0, 1) + "\uE003" + timers[timerID].substr(2);
+ timersFlag[timerID] = "0"
}
} catch(e) {
alert("(De)Activate Timers problem: " + e);