From 60297b856dd897dfc74e6e27acd25c80449ed7b8 Mon Sep 17 00:00:00 2001 From: Ian Date: Sat, 13 Sep 2014 14:39:49 +0100 Subject: [PATCH] Webui: restore channel tag functionality to EPG query and autorec --- src/webui/static/app/epg.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index 08021939..b7d5e920 100644 --- a/src/webui/static/app/epg.js +++ b/src/webui/static/app/epg.js @@ -9,8 +9,8 @@ tvheadend.brands = new Ext.data.JsonStore({ }); insertContentGroupClearOption = function( scope, records, options ){ - var placeholder = Ext.data.Record.create(['name', 'code']); - scope.insert(0,new placeholder({name: '(Clear filter)', code: '-1'})); + var placeholder = Ext.data.Record.create(['val', 'key']); + scope.insert(0,new placeholder({val: '(Clear filter)', key: '-1'})); }; tvheadend.ContentGroupStore = tvheadend.idnode_get_enum({ @@ -453,7 +453,7 @@ tvheadend.epg = function() { var epgFilterContentGroup = new Ext.form.ComboBox({ loadingText: 'Loading...', width: 200, - displayField: 'name', + displayField: 'val', store: tvheadend.ContentGroupStore, mode: 'local', editable: true, @@ -553,10 +553,10 @@ tvheadend.epg = function() { }); epgFilterContentGroup.on('select', function(c, r) { - if (r.data.code == -1) + if (r.data.key == -1) clearContentGroupFilter(); - else if (epgStore.baseParams.content_type !== r.data.code) - epgStore.baseParams.content_type = r.data.code; + else if (epgStore.baseParams.content_type !== r.data.key) + epgStore.baseParams.content_type = r.data.key; epgStore.reload(); });