webui: ensure tabs are in the right place!
This commit is contained in:
parent
589669126e
commit
5b9088dc80
3 changed files with 9 additions and 1 deletions
|
@ -146,6 +146,7 @@ tvheadend.channel_tab = function(panel)
|
|||
comet : 'channel',
|
||||
titleS : 'Channel',
|
||||
titleP : 'Channels',
|
||||
tabIndex: 0,
|
||||
add : {
|
||||
url : 'api/channel',
|
||||
create : {}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue