]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: Do not open the info dialog when the "Play" link is clicked
authorJaroslav Kysela <perex@perex.cz>
Thu, 19 Jun 2014 19:20:20 +0000 (21:20 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 19 Jun 2014 20:32:44 +0000 (22:32 +0200)
src/webui/static/app/dvr.js

index 7ca5daa8d0875fe7b0ffa47c2ecb064336c0906c..6a68c755de03901bd320dfa2fa2e0b65f240b1bb 100644 (file)
@@ -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;
 };