diff options
| author | M. Voerman <rekordc@gmail.com> | 2013-02-05 15:08:14 +0100 |
|---|---|---|
| committer | M. Voerman <rekordc@gmail.com> | 2013-02-05 15:08:14 +0100 |
| commit | 3917e34465adc7a7f8d8087d3f9f673f940a0061 (patch) | |
| tree | 99017f08aca4dd807771069bd4d8e9241432518d | |
| parent | 7589df2077717ba8d01e08e9bec5ab4056160b25 (diff) | |
| download | vdr-vipclient-3917e34465adc7a7f8d8087d3f9f673f940a0061.tar.gz vdr-vipclient-3917e34465adc7a7f8d8087d3f9f673f940a0061.tar.bz2 | |
Fixed ChanGroup, now the right channel group is autoselected.
| -rw-r--r-- | index.html | 14 | ||||
| -rw-r--r-- | settings.js | 2 |
2 files changed, 8 insertions, 8 deletions
@@ -2356,14 +2356,14 @@ try { function DelRec() { if (osdepginfo.style.opacity == 1) {osdepginfo.style.opacity = 0;} try { - xmlhttp=new XMLHttpRequest(); - xmlhttp.open("GET",(RestFulAPI + "/recordings/" + currMed + ".xml?" + new Date().getTime()),false); - xmlhttp.send(); - xmlDoc=xmlhttp.responseXML; - var x=xmlDoc.getElementsByTagName("recording"); +// xmlhttp=new XMLHttpRequest(); +// xmlhttp.open("GET",(RestFulAPI + "/recordings/" + currMed + ".xml?" + new Date().getTime()),false); +// xmlhttp.send(); +// xmlDoc=xmlhttp.responseXML; +// var x=xmlDoc.getElementsByTagName("recording"); //popup for confirm switchtimer.style.opacity = 1; - switchtimer.innerHTML = "<pre><center> OK to delete \n other to abort \n\n " + Left(x[0].getElementsByTagName("param")[1].childNodes[0].nodeValue,30) + "</center></pre>"; // Recording Name + switchtimer.innerHTML = "<pre><center> OK to delete \n other to abort \n\n " + Left(recTitl[currMed],30) + "</center></pre>"; // Recording Name DelisOK = 1 } catch(e) { alert("Delete Recordings problem: " + e); @@ -2373,7 +2373,7 @@ try { function DelRec2() { try { xmlhttp=new XMLHttpRequest(); - xmlhttp.open("POST",(RestFulAPI + "/recordings/" + currMed ),false); + xmlhttp.open("POST",(recServ + "/deleteRecording.xml?id=" + recGUID[currMed] ),false); xmlhttp.send(); recList[currMed] = ""; } catch(e) { diff --git a/settings.js b/settings.js index 35e7d61..bda9c08 100644 --- a/settings.js +++ b/settings.js @@ -39,7 +39,7 @@ NN[4] = "-----"; var VolumeStep = 5; // Steps the volume buttons make -var ChanGroup = (currChan/1000).toFixed(0); // default group +var ChanGroup = Number(String((currChan / 1000)).substring(0,1)); // default group var minChan = new Array(); var maxChan = new Array(); var defChan = new Array(); var baseChn = new Array(); var protChn = new Array(); var ServerAdres = new Array(); // Define settings for Channels. // Server for Recordings |
