]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
WEBUI JS: epg grid - add info action (icon) to be consistent with dvr
authorJaroslav Kysela <perex@perex.cz>
Sun, 28 Sep 2014 19:05:36 +0000 (21:05 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 28 Sep 2014 19:05:36 +0000 (21:05 +0200)
src/webui/static/app/epg.js

index 15f60413fa235c26481bc78e11e8ed2549178733..b05b27102ce71b4726b9f3bf02360eff54b638a3 100644 (file)
@@ -226,12 +226,21 @@ tvheadend.epg = function() {
     var lookup = '<span class="x-zoom">&nbsp;</span>';
 
     var actions = new Ext.ux.grid.RowActions({
-        header: '',
-        width: 20,
+        id: 'details',
+        header: 'Details',
+        width: 45,
         dataIndex: 'actions',
-        actions: [{
-                iconIndex: 'dvrState'
-            }]
+        actions: [
+            {
+                iconCls: 'info',
+                qtip: 'Broadcast details',
+                cb: function(grid, rec, act, row) {
+                    new tvheadend.epgDetails(grid.getStore().getAt(row).data);
+                }
+            },
+            { iconIndex: 'dvrState' }
+                                                                                                          
+        ]
     });
 
     var epgStore = new Ext.ux.grid.livegrid.Store({