From 21057136ae42ea59022d87f3e5d83c55c4cca074 Mon Sep 17 00:00:00 2001 From: horchi Date: Thu, 9 Mar 2017 21:59:32 +0100 Subject: 2017-03-09: version 1.1.106 (rechner)\n - bugfix: default namingmode on searchtimer was shown if VDR was stored\n \n --- http/src/js/5_timerDialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'http/src/js') diff --git a/http/src/js/5_timerDialog.js b/http/src/js/5_timerDialog.js index 704f31e..550b483 100644 --- a/http/src/js/5_timerDialog.js +++ b/http/src/js/5_timerDialog.js @@ -444,8 +444,8 @@ epgd.searchTimerDialog.prototype.render = function (t) { form.tChExclude0.checked = 1; 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 = t.namingmode || form.tNameMode.defaultIndex; - form.tTemplate.value = t.template || (t.category == 'Serie' ? epgd.profile.namingModeSearchSerieTemplate : epgd.profile.namingModeSearchMovieTemplate); + form.tNameMode.selectedIndex = typeof t.namingmode == "undefined" ? form.tNameMode.defaultIndex : t.namingmode; + form.tTemplate.value = typeof t.template == "undefined" ? (t.category == 'Serie' ? epgd.profile.namingModeSearchSerieTemplate : epgd.profile.namingModeSearchMovieTemplate) : 10; $(form.tNameMode).change(); this.$win.parent().find('#tBCopy').toggle(!!t.id); }; @@ -590,7 +590,7 @@ epgd.searchDialog.prototype.create = function () { $(form.tSName).autocomplete({ minLength: 0, maxHeight: 300, - source:function(){return false}, // damit bei einem focus kein error ausgelöst wird + source:function(){return false}, // damit bei einem focus kein error ausgel�st wird select: function (ev, ui) { var d = ui.item.data || { id: '' }; if (d.id) { -- cgit v1.2.3