summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Manual.txt5
-rw-r--r--index.html28
2 files changed, 15 insertions, 18 deletions
diff --git a/Manual.txt b/Manual.txt
index 1876ba3..0a66111 100644
--- a/Manual.txt
+++ b/Manual.txt
@@ -67,7 +67,8 @@ Blue - Info about Recording
TV - Back to TV mode
Up - scroll -1
Down - scroll +1
-Red - Delete Timer (patched restfulapi only!)
+Red - Delete Timer
+Green - (De)Activate Timer
Blue - Shows info about timer
EPG mode (Yellow button, default view)
@@ -80,7 +81,7 @@ Down - scroll +1
OK - Shows info about timer
Blue - Shows info about timer
Red - Set switch timer
-Rec - Server recording (makes local timer and sends key 'record' when recording should start)
+Rec - Server recording
Green - local recording (hdd units only)
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);