From: Adam Sutton Date: Sun, 11 Nov 2012 20:08:35 +0000 (+0000) Subject: Issue #1369 - move iptv service type store inside main tab function else it causes... X-Git-Tag: v3.5~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=254872a8f8ec5c43c0dce86f1e521f9c22e361df;p=thirdparty%2Ftvheadend.git Issue #1369 - move iptv service type store inside main tab function else it causes a 401 error for non-admin UI users. --- diff --git a/src/webui/static/app/iptv.js b/src/webui/static/app/iptv.js index 7914685fa..4cd4f35e9 100644 --- a/src/webui/static/app/iptv.js +++ b/src/webui/static/app/iptv.js @@ -1,19 +1,19 @@ -tvheadend.servicetypeStore = new Ext.data.JsonStore({ - root : 'entries', - id : 'val', - url : '/iptv/services', - baseParams : { - op : 'servicetypeList' - }, - fields : [ 'val', 'str' ], - autoLoad : true -}); - /** * IPTV service grid */ tvheadend.iptv = function(adapterId) { + var servicetypeStore = new Ext.data.JsonStore({ + root : 'entries', + id : 'val', + url : '/iptv/services', + baseParams : { + op : 'servicetypeList' + }, + fields : [ 'val', 'str' ], + autoLoad : false + }); + var fm = Ext.form; var enabledColumn = new Ext.grid.CheckColumn({