From 6c061fb5ded6e8308b4da148bd42fab4471a2e4a Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Fri, 8 Aug 2014 12:00:33 +0200 Subject: Updated layout local timers menu Added switch option // RecLocal <> Switchonly --- History | 1 + index.html | 24 +++++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/History b/History index 4052b44..c80aca9 100644 --- a/History +++ b/History @@ -21,6 +21,7 @@ VDR 1.7.29+ Changed the color of the infowindow to 'Green' // Infowindow is now 'Red' in case of error, warning or if User attention is needed. To stop local recording goto timer menu press stop button. button gives more info about a (local) timer + Updated view of local timers, to match more the server timer menu layout. 0.24 vip.getmarks used for selecting getmarks 0 = restfulapi, 1 = SmartTVWeb (not all users have the newest SmartTVWeb) diff --git a/index.html b/index.html index a85ed88..8f9d56f 100644 --- a/index.html +++ b/index.html @@ -1481,7 +1481,7 @@ if (!BackGroundColor) { BackGroundColor = DefaultBGColor;} // 1 - switchonly, 2 - record on server (display info only), 3 - record local if(SwitchTimer == 1) { try { - var x = ss.schedule("SwitchOnly","notification", ProgTime , 0); + var x = ss.schedule("SwitchOnly","notification", ProgTime , ProgDura); ss.setParameter(x, "Channel", currChan.toString() ); ss.setParameter(x, "Title", ProgName ); ss.setParameter(x, "Info", ProgDesc); @@ -1489,6 +1489,7 @@ if (!BackGroundColor) { BackGroundColor = DefaultBGColor;} ss.setParameter(x, "Type", "\uE00C"); //Timer Symbol ss.setParameter(x, "resume", "0"); ss.setParameter(x, "Eventid", ProgEvID); + } catch (e) { ProgName = "ERROR" ; @@ -2456,6 +2457,8 @@ function onKeyMenu(keyCode) { } else if (ss.getBooking(x[timerID-1]).category == "SwitchOnly") { ss.reschedule(x[timerID-1],"RecLocal","record_hd_from_ip",ss.getBooking(x[timerID-1]).start,ss.getBooking(x[timerID-1]).duration) } + LoadTimers(); + InitMenu(menu); } else if (menu == 5 && smartTVplugin) { activate_timers(timerID); InitMenu(menu); @@ -2913,7 +2916,7 @@ if(menu == 2) { // Timers menu } } if (mediaRecorder) { var x = NN[3]; } else { var x = Lang[19]; } - mainmenu.innerHTML = "

" + Lang[7] + "

\n   0 -" + Lang[9] + "\n" + booking + "   \u25CF -" + Lang[48] + "\u25CF -" + Lang[19] + "\u25CF - " + x + "  \u25CF - " + NN[5] + "
"; + mainmenu.innerHTML = "

" + Lang[7] + "

\n   0 -" + Lang[9] + "\n" + booking + "   \u25CF -" + Lang[48] + "\u25CF -" + x + "\u25CF - " + Lang[19] + "  \u25CF - " + NN[5] + "
"; } if(menu == 3) { // MPD Menu @@ -3070,9 +3073,8 @@ function LoadTimers() { var x = ss.getBookingIds("*", 0, 0); for (var i=0;i