From a7b87ffa3cfc6bc70770672bb36276dd8c5ee1f5 Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Wed, 3 Jul 2013 17:02:12 +0200 Subject: cleaning up --- index.html | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index f868ea3..54da046 100644 --- a/index.html +++ b/index.html @@ -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