diff options
author | M. Voerman <rekordc@gmail.com> | 2013-07-03 17:02:12 +0200 |
---|---|---|
committer | M. Voerman <rekordc@gmail.com> | 2013-07-03 17:02:12 +0200 |
commit | a7b87ffa3cfc6bc70770672bb36276dd8c5ee1f5 (patch) | |
tree | 7a182e9b79a2ee4639e84f1d47c79147bfd388c3 | |
parent | 9129dcd9a2f2105a4269bf3f5ef34f0e3aa85bff (diff) | |
download | vdr-vipclient-a7b87ffa3cfc6bc70770672bb36276dd8c5ee1f5.tar.gz vdr-vipclient-a7b87ffa3cfc6bc70770672bb36276dd8c5ee1f5.tar.bz2 |
cleaning up
-rw-r--r-- | index.html | 33 |
1 files changed, 19 insertions, 14 deletions
@@ -23,7 +23,7 @@ // // -var Version = "0.20.5" +var Version = "0.20.6" for (var x = 0; x < 10; x++) { if (minChan[x]) { @@ -2828,21 +2828,25 @@ try { recStrt[i] = (x[i].getElementsByTagName("start")[0].childNodes[0].nodeValue); rec_New[i] = (x[i].getElementsByTagName("isnew")[0].childNodes[0].nodeValue); recGUID[i] = (x[i].getElementsByTagName("guid")[0].childNodes[0].nodeValue); - if (recPath == "/recordings.xml") { - //Get channel number from recordings - recDummy = recGUID[i].split("."); - recDummy = recDummy[(recDummy.length-2)].split("-"); - recChan[i] = recDummy[0] + "\uE003-\uE003" + channelsnames[(recDummy[0])]; - } else { - //Media directory - recChan[i] = "Media File"; - } - } + if (recPath == "/recordings.xml") { + //Get channel number from recordings + recDummy = recGUID[i].split("."); + recDummy = recDummy[(recDummy.length-2)].split("-"); + recChan[i] = recDummy[0] + "\uE003-\uE003" + channelsnames[(recDummy[0])]; + } else { + //Media directory + recChan[i] = "Media File"; + } + } +// i = i + 1; +// recTitl[i] = "fake"; +// recTitl[i] = recTitl[i].split("~"); + // if (recPath == "/recordings.xml" && ShowSubDir) { if (ShowSubDir) { - MakeRecList2(); + MakeRecList2(); } else { - MakeRecList(); + MakeRecList(); } getRecOK = 1; } catch(e) { @@ -2938,7 +2942,7 @@ try { xmlhttp.open("POST",(recServ + "/deleteRecording.xml?id=" + recGUID[currMed] ),false); xmlhttp.send(); recList[currMed] = ""; - recGroup[currMed] = ""; + recGroup[currMed] = -1; } catch(e) { alert("Delete Recordings problem: " + e); } @@ -3008,6 +3012,7 @@ function MakeRecList3(GroupID) { for (var i=0;i<recTitl.length;i++) { if (recGroup[i] == GroupID) { + alert ( recGroup[i] + " " + recTitl[i] + " " + i); if (rec_New[i] == "true" ) { recList[i] = "\uE010\uE003" + recTitl[i]; } else { recList[i] = "\uE003\uE003" + recTitl[i]; } MaxInGroup = MaxInGroup + 1; |