From fc0d77b8288ba7c031e660d30b778cac394e19d5 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 19 Jun 2014 21:20:20 +0200 Subject: [PATCH] webui: Do not open the info dialog when the "Play" link is clicked --- src/webui/static/app/dvr.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/webui/static/app/dvr.js b/src/webui/static/app/dvr.js index 7ca5daa8..6a68c755 100644 --- a/src/webui/static/app/dvr.js +++ b/src/webui/static/app/dvr.js @@ -493,10 +493,13 @@ tvheadend.dvrschedule = function(title, iconCls, dvrStore) { bbar: bbar }); - panel.on('rowclick', rowclicked); - function rowclicked(grid, index) { - new tvheadend.dvrDetails(grid.getStore().getAt(index).data); + + 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; };