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 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'http/src/js/5_timerDialog.js') 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); -- cgit v1.2.3