summaryrefslogtreecommitdiff
path: root/http/src/js/5_timerDialog.js
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2018-04-21 21:40:41 +0200
committerhorchi <vdr@jwendel.de>2018-04-21 21:40:41 +0200
commitc8bd1c70a8d10ee13fd8d0b12adf9655dcaa8634 (patch)
tree20332318879d317ed2e6ec1abdc03506b2e62ab3 /http/src/js/5_timerDialog.js
parent0e35ada8c0b0838310b2fda0357acfd8a106ce4c (diff)
downloadvdr-epg-daemon-c8bd1c70a8d10ee13fd8d0b12adf9655dcaa8634.tar.gz
vdr-epg-daemon-c8bd1c70a8d10ee13fd8d0b12adf9655dcaa8634.tar.bz2
2018-04-21: version 1.1.140 (rechner)\n change: Added UI for Prepared search timer filter by channel number \n \n1.1.140
Diffstat (limited to 'http/src/js/5_timerDialog.js')
-rw-r--r--http/src/js/5_timerDialog.js11
1 files changed, 11 insertions, 0 deletions
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 () {
+ '<div><input type="radio" name="tChExclude" value="1" id="tChExclude0" /><label for="tChInclude">' + tr.chInclude
+ '</label>' + epgd.pages.help.getIcon('sTChannels') + '<input type="radio" name="tChExclude" value="0" id="tChExclude1" /><label for="tChExclude">' + tr.chExclude
+ '</label></div><input type="text" id="tChannels" class="full"/>'
+ + '<div><label for="tChRange">' + tr.chRange + epgd.pages.help.getIcon('sTChannels') + '</label><input id="tChRangeMin" style="width:40px" /> - <input id="tChRangeMax" style="width:40px" /></div>'
+ '<div class="noTypeS"><label for="tChFormat">' + tr.chFormat + epgd.pages.help.getIcon('sTChFormat') + '</label><input id="tChFormat" readonly onclick="epgd.timerEditChFormat(this)" /></div>'
+ '<div><label for="tTime"><input type="checkbox" id="tTime" />&nbsp;' + epgd.tr.dateTimePicker.timeText + epgd.pages.help.getIcon('sTime') + '</label></div>');
$(form.tWeek[0]).before('<span>' + epgd.tr.dateTimePicker.timeTextBetween + ' <input type="text" id="tStart" style="width:40px" /> - <input type="text" id="tEnd" style="width:40px" /></span>')
@@ -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);