summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2013-05-08 01:43:13 +0200
committerM. Voerman <rekordc@gmail.com>2013-05-08 01:43:13 +0200
commitc12f9b3e37fe6d0ad43fcbfffd4708160294ab14 (patch)
tree5e7b296f193a912e3d806b9817aa9a4dcecfe44b
parentdf44f1821d573ed262a6f2b13f98b259eb45528c (diff)
downloadvdr-vipclient-c12f9b3e37fe6d0ad43fcbfffd4708160294ab14.tar.gz
vdr-vipclient-c12f9b3e37fe6d0ad43fcbfffd4708160294ab14.tar.bz2
more fixes for menu recordings. (Hopefully this is the final fix for the double bars problem)
-rw-r--r--index.html28
1 files changed, 17 insertions, 11 deletions
diff --git a/index.html b/index.html
index b5a596f..eec033f 100644
--- a/index.html
+++ b/index.html
@@ -2729,23 +2729,29 @@ function showMediaList() {
osdmedia.style.opacity = 0;
var liststyle = "";
listMed = currMed - 1;
-
- if (nrMedia < 14) {var MaxMed = nrMedia; } else { var MaxMed = 14; }
+ var MaxMed = -1;
if (getRecOK == 1) {
- var htmlstring = "<h1><center style='font-size:" + fsRec + ";color:white;'> RECORDINGS (free " + (100 - perc_space) + "%, " + (free_space/1024).toFixed(0) + " GB) </center></h1><table border='0'><tr>";
- if (MaxInGroup < 14 && subgroup) { MaxMed = MaxInGroup; }
- if (!subgroup) {
- MaxMed = -1;
- for(var i=0; i<=nrMedia; i++) {
- if (recList[i]) { MaxMed = MaxMed + 1;}
+ var htmlstring = "<h1><center style='font-size:" + fsRec + ";color:white;'> RECORDINGS (free " + (100 - perc_space) + "%, " + (free_space/1024).toFixed(0) + " GB) </center></h1><table border='0'><tr>";
+
+ if (subgroup) {
+ if (MaxInGroup < 14){ MaxMed = MaxInGroup; } else {MaxMed = 14; }
}
- if (MaxMed > 14) { MaxMed = 14; }
- }
+ if (!subgroup) {
+ for(var i=0; i<=nrMedia; i++) {
+ if (recList[i]) { MaxMed = MaxMed + 1;}
+ }
+ }
+
} else {
- var htmlstring = "<h1><center style='font-size:" + fsRec + ";color:white;'> EPG " + channelsnames[currChan] + " </center></h1><table border='0'><tr>";
+
+ if (nrMedia < 14) {MaxMed = nrMedia; } else {MaxMed = 14; }
+ var htmlstring = "<h1><center style='font-size:" + fsRec + ";color:white;'> EPG " + channelsnames[currChan] + " </center></h1><table border='0'><tr>";
}
+ if (MaxMed > 14) { MaxMed = 14; }
+ if (MaxMed < 0 ) { MaxMed = 0; }
+
for(var i=currMed; i<=currMed + MaxMed; i++) {
if (listMed<0) {
listMed=nrMedia;