]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
[webui] add an Info button to recording panels which opens the details dialog
authorSam Stenvall <neggelandia@gmail.com>
Tue, 5 Aug 2014 11:31:44 +0000 (14:31 +0300)
committerJaroslav Kysela <perex@perex.cz>
Wed, 6 Aug 2014 08:10:27 +0000 (10:10 +0200)
Also disable the oncellclicked callback which previously triggered the dialog

src/webui/static/app/dvr.js

index ee2fecb15329a60b715643cb81c52e15291634a7..4daebaa4db5a40e71015a2085100754f7ab93ba0 100644 (file)
@@ -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) {
@@ -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;
 };