diff --git a/src/webui/static/app/chconf.js b/src/webui/static/app/chconf.js index 3acde808..092db637 100644 --- a/src/webui/static/app/chconf.js +++ b/src/webui/static/app/chconf.js @@ -146,6 +146,7 @@ tvheadend.channel_tab = function(panel) comet : 'channel', titleS : 'Channel', titleP : 'Channels', + tabIndex: 0, add : { url : 'api/channel', create : {} diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index b08dc670..73ae6432 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -853,7 +853,10 @@ tvheadend.idnode_grid = function(panel, conf) tbar : buttons, bbar : page }); - panel.add(grid); + if (conf.tabIndex != null) + panel.insert(conf.tabIndex, grid); + else + panel.add(grid); /* Add comet listeners */ var update = function(o) { diff --git a/src/webui/static/app/mpegts.js b/src/webui/static/app/mpegts.js index d3bb49d4..9559dadb 100644 --- a/src/webui/static/app/mpegts.js +++ b/src/webui/static/app/mpegts.js @@ -32,6 +32,7 @@ tvheadend.networks = function(panel) comet : 'mpegts_network', titleS : 'Network', titleP : 'Networks', + tabIndex : 1, add : { titleS : 'Network', select : { @@ -56,6 +57,7 @@ tvheadend.muxes = function(panel) comet : 'mpegts_mux', titleS : 'Mux', titleP : 'Muxes', + tabIndex : 2, add : { titleS : 'Mux', select : { @@ -97,6 +99,7 @@ tvheadend.services = function(panel) comet : 'service', titleS : 'Service', titleP : 'Services', + tabIndex: 3, add : false, del : false, tbar : [ mapButton ], @@ -118,6 +121,7 @@ tvheadend.satconfs = function(panel) comet : 'linuxdvb_satconf', titleS : 'Satconf', titleP : 'Satconfs', + tabIndex : 4, add : { titleS : 'Satconf', url : 'api/linuxdvb/satconf',