webui: some minor corrections to mpegts/idnode code

This commit is contained in:
Adam Sutton 2013-08-15 12:30:19 +01:00
parent a63df85c64
commit 8ae30388aa
2 changed files with 9 additions and 6 deletions

View file

@ -347,7 +347,7 @@ tvheadend.idnode_create = function(conf)
} else {
select = function (s, n, o) {
params = conf.select.clazz.params || {};
params['uuid'] = puuid = n.data.uuid;
params['uuid'] = puuid = n.id;
Ext.Ajax.request({
url : conf.select.clazz.url || conf.select.url || conf.url,
success : function(d) {

View file

@ -14,8 +14,8 @@ tvheadend.network_list = new Ext.data.JsonStore({
url : 'api/idnode/load',
baseParams : { class : 'mpegts_network', enum: 1 },
root : 'entries',
fields : [ 'uuid', 'title' ],
id : 'uuid',
fields : [ 'key', 'val' ],
id : 'key',
autoLoad : true,
});
@ -61,8 +61,8 @@ tvheadend.muxes = function(panel)
select : {
label : 'Network',
store : tvheadend.network_list,
displayField : 'title',
valueField : 'uuid',
valueField : 'key',
displayField : 'val',
clazz : {
url : 'api/mpegts/network/mux_class'
}
@ -94,7 +94,10 @@ tvheadend.satconfs = function(panel)
comet : 'linuxdvb_satconf',
titleS : 'Satconf',
titleP : 'Satconfs',
add : {},
add : {
url : 'api/linuxdvb/satconf',
create : {}
},
del : true,
edittree : true,
});