Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WEBUI JS: Add possibility to create tab panels dynamically (disabled …
…by default)
  • Loading branch information
perexg committed Sep 8, 2014
1 parent 8d75fb0 commit 0baf95a
Show file tree
Hide file tree
Showing 5 changed files with 409 additions and 308 deletions.
16 changes: 2 additions & 14 deletions src/webui/static/app/acleditor.js
Expand Up @@ -4,17 +4,6 @@

tvheadend.acleditor = function(panel, index)
{
panel2 = new Ext.TabPanel({
activeTab: 0,
autoScroll: true,
title: 'Access Control',
iconCls: 'group',
tabIndex: index,
items: []
});

tvheadend.paneladd(panel, panel2, index);

var list = 'enabled,username,password,prefix,streaming,adv_streaming,' +
'dvr,dvr_config,webui,admin,channel_min,channel_max,channel_tag,' +
'comment';
Expand All @@ -23,6 +12,7 @@ tvheadend.acleditor = function(panel, index)
url: 'api/access/entry',
titleS: 'Access Entry',
titleP: 'Access Entries',
iconCls: 'group',
columns: {
username: { width: 250 },
password: { width: 250 },
Expand All @@ -35,7 +25,7 @@ tvheadend.acleditor = function(panel, index)
channel_min: { width: 100 },
channel_max: { width: 100 },
},
tabIndex: 0,
tabIndex: index,
edit: {
params: {
list: list,
Expand All @@ -55,6 +45,4 @@ tvheadend.acleditor = function(panel, index)
new tvheadend.help('Access Control Entries', 'config_access.html');
},
});

return panel;
};
4 changes: 3 additions & 1 deletion src/webui/static/app/dvr.js
Expand Up @@ -71,7 +71,9 @@ tvheadend.dvrRowActions = function() {
new tvheadend.dvrDetails(grid.getStore().getAt(row).id);
}
}
]
],
destroy: function() {
}
});
}

Expand Down

0 comments on commit 0baf95a

Please sign in to comment.