diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2015-02-13 22:22:49 +0100 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2015-02-13 22:22:49 +0100 |
commit | 31ebc4f713817de853334f8157974ac44eb8c7c0 (patch) | |
tree | 2d768804d533dbb1a7cf600d462816b92a686d9a /pages | |
parent | af54bd8bc8fde95cdb379bd0d2673ede234a0645 (diff) | |
download | vdr-plugin-live-31ebc4f713817de853334f8157974ac44eb8c7c0.tar.gz vdr-plugin-live-31ebc4f713817de853334f8157974ac44eb8c7c0.tar.bz2 |
Add option 'Announce via email' in searchtimer edit box. Solution and
idea came from user snoopy_1978 and closes bug entry #1341 in the
bugtracker.
Diffstat (limited to 'pages')
-rw-r--r-- | pages/edit_searchtimer.ecpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/pages/edit_searchtimer.ecpp b/pages/edit_searchtimer.ecpp index 69103a1..d6a0aba 100644 --- a/pages/edit_searchtimer.ecpp +++ b/pages/edit_searchtimer.ecpp @@ -341,7 +341,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); usevps = searchtimer->UseVPS(); delmode = searchtimer->DelMode(); delaftercountrecs = searchtimer->DelAfterCountRecs(); - delafterdaysoffirstrec = searchtimer->DelAfterDaysOfFirstRec(); + delafterdaysoffirstrec = searchtimer->DelAfterDaysOfFirstRec(); editsearchtimer = searchtimer; } @@ -364,7 +364,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); <html> <head> <title>VDR Live - <$ editsearchtimer ? tr("Edit search timer") : tr("New search timer") $></title> - + <& pageelems.stylesheets &> <& pageelems.ajax_js &> @@ -377,9 +377,9 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); changeduseduration(document.getElementById("useduration")); changeduseweekday(document.getElementById("useweekday")); changeduseassearchtimer(document.getElementById("useassearchtimer")); -% if (extEPGInfos.size() > 0) { +% if (extEPGInfos.size() > 0) { changeduseextepginfo(document.getElementById("useextepginfo")); -% } +% } changedavoidrepeats(document.getElementById("avoidrepeats")); changedblacklistmode(document.getElementById("blacklistmode")); changeddelmode(document.getElementById("delmode")); @@ -420,9 +420,9 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); function changeduseassearchtimer(selection) { - document.getElementById("searchtimermodesettings").style.display = + document.getElementById("searchtimermodesettings").style.display = (selection.options[selection.selectedIndex].value > 0) ? "block" : "none"; - document.getElementById("useassearchtimeruserdef").style.display = + document.getElementById("useassearchtimeruserdef").style.display = (selection.options[selection.selectedIndex].value == 2) ? "block" : "none"; changedsearchtimermode(document.getElementById("searchtimer_mode")); } @@ -431,11 +431,11 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); { document.getElementById("searchtimermode1settings").style.display = (selection.options[selection.selectedIndex].value == 0 & - document.getElementById("useassearchtimer").options[document.getElementById("useassearchtimer").selectedIndex].value > 0) ? + document.getElementById("useassearchtimer").options[document.getElementById("useassearchtimer").selectedIndex].value > 0) ? "block" : "none"; document.getElementById("searchtimermode3settings").style.display = - (selection.options[selection.selectedIndex].value == 2 & - document.getElementById("useassearchtimer").options[document.getElementById("useassearchtimer").selectedIndex].value > 0) ? + (selection.options[selection.selectedIndex].value == 2 & + document.getElementById("useassearchtimer").options[document.getElementById("useassearchtimer").selectedIndex].value > 0) ? "block" : "none"; } @@ -758,6 +758,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); <option value="0" <{ SELECTIF(searchtimeraction == 0) }> ><$ tr("Record") $></option> <option value="1" <{ SELECTIF(searchtimeraction == 1) }> ><$ tr("Announce only") $></option> <option value="2" <{ SELECTIF(searchtimeraction == 2) }> ><$ tr("Switch only") $></option> + <option value="4" <{ SELECTIF(searchtimeraction == 4) }> ><$ tr("Announce via email") $></option> </select> </div> <div id="searchtimermode1settings" style="display: none"> |