From c8bd1c70a8d10ee13fd8d0b12adf9655dcaa8634 Mon Sep 17 00:00:00 2001 From: horchi Date: Sat, 21 Apr 2018 21:40:41 +0200 Subject: 2018-04-21: version 1.1.140 (rechner)\n change: Added UI for Prepared search timer filter by channel number \n \n --- http/src/js/5_timerDialog.js | 11 +++++++++++ http/src/lang/de.js | 4 +++- http/src/lang/hilfe.html | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) (limited to 'http/src') diff --git a/http/src/js/5_timerDialog.js b/http/src/js/5_timerDialog.js index 7ee729b..5d4c71d 100644 --- a/http/src/js/5_timerDialog.js +++ b/http/src/js/5_timerDialog.js @@ -380,6 +380,7 @@ epgd.searchTimerDialog.prototype.create = function () { + '
' + epgd.pages.help.getIcon('sTChannels') + '
' + + '
-
' + '
' + '
'); $(form.tWeek[0]).before('' + epgd.tr.dateTimePicker.timeTextBetween + ' - ') @@ -451,6 +452,9 @@ epgd.searchTimerDialog.prototype.render = function (t) { form.tChExclude1.checked = 1; else form.tChExclude0.checked = 1; + tChRangeMin.value= t.chnummin || ''; + tChRangeMax.value= t.chnummax || ''; + form.tChFormat.value = t.chformat || (t.id ? '' : epgd.profile.chFormat); form.tNameMode.defaultIndex = parseInt(t.category == 'Serie' ? epgd.profile.namingModeSearchSerie : epgd.profile.namingModeSearchMovie, 10); form.tNameMode.selectedIndex = typeof t.namingmode == "undefined" ? form.tNameMode.defaultIndex : t.namingmode; @@ -502,6 +506,13 @@ epgd.searchTimerDialog.prototype.getData = function (dontValid) { data.channelids = epgd.utils.getAutoCompleteValues(form.tChannels); data.chformat = form.tChFormat.value; data.chexclude = form.tChExclude1.checked ? 1 : 0; + data.chnummin = parseInt(form.tChRangeMin.value,10); + if (isNaN(data.chnummin)) + data.chnummin= 0; + data.chnummax = parseInt(form.tChRangeMax.value, 10); + if (isNaN(data.chnummax)) + data.chnummax= 0; + if (form.tTime.checked) { data.starttime = parseInt(form.tStart.value.replace(':', ''), 10); data.endtime = parseInt(form.tEnd.value.replace(':', ''), 10); diff --git a/http/src/lang/de.js b/http/src/lang/de.js index 0cf1c12..eb57bc6 100644 --- a/http/src/lang/de.js +++ b/http/src/lang/de.js @@ -92,6 +92,7 @@ epgd.tr = { searchTimerReload: "Suchtimer updaten", chInclude: "Auf Kanäle einschränken", chExclude: "Kanäle ausschließen", + chRange: "Kanal von/bis", nextDays: "innerhalb der nächsten $field$ Tage", confirmSaveBigResult: "Die Suche ergibt $cnt$ Treffer, trotzdem speichern?", timerStates: { @@ -126,7 +127,8 @@ epgd.tr = { 'W': 'Warnung', 'E': 'Fehler', 'F': 'Fataler Fehler' - }, chFormat: "bevorzugtes Sendeformat" + }, + chFormat: "bevorzugtes Sendeformat" //channelModes: ["SD", "HD", "3D", "HD,SD", "SD,HD", "3D,HD,SD", "SD,HD,3D"] }, eventDetail: { diff --git a/http/src/lang/hilfe.html b/http/src/lang/hilfe.html index ac2d394..d614f69 100644 --- a/http/src/lang/hilfe.html +++ b/http/src/lang/hilfe.html @@ -197,6 +197,7 @@

Kanäle

Kanäle einschränken oder auschließen
Hier können ein oder mehrere Kanäle definiert werden, die entweder aus der Suche ausgeschlossen werden oder auf denen die Suche eingeschränkt wird. +
Kanal von/bis
Wird hier ein Wert eingetragen, werden bei der Suche dann nur Kanäle ab bzw. bis der eingetragenen Nummer (incl.) berücksichtigt.

Sendungsbeginn

-- cgit v1.2.3