Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[webui] add an Info button to recording panels which opens the detail…
…s dialog

Also disable the oncellclicked callback which previously triggered the dialog
  • Loading branch information
Jalle19 authored and perexg committed Aug 6, 2014
1 parent 073169a commit dc0bcad
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/webui/static/app/dvr.js
Expand Up @@ -171,12 +171,21 @@ tvheadend.dvrDetails = function(entry) {
tvheadend.dvrschedule = function(title, iconCls, dvrStore) {

var actions = new Ext.ux.grid.RowActions({
header: '',
header: 'Details',
dataIndex: 'actions',
width: 45,
actions: [{
actions: [
{
iconIndex: 'schedstate'
}]
},
{
iconCls: 'info',
qtip: 'Detailed stream info',
cb: function(grid, rec, act, row) {
new tvheadend.dvrDetails(grid.getStore().getAt(row).data);
}
}
]
});

function renderDate(value) {
Expand Down Expand Up @@ -497,13 +506,6 @@ tvheadend.dvrschedule = function(title, iconCls, dvrStore) {
bbar: bbar
});


panel.on('cellclick', cellclicked);
function cellclicked(grid, rowIndex, colIndex) {
if (grid.getColumnModel().getColumnHeader(colIndex) !== 'Play')
new tvheadend.dvrDetails(grid.getStore().getAt(rowIndex).data);
}

return panel;
};

Expand Down

0 comments on commit dc0bcad

Please sign in to comment.