]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
WebUI: Split EPG details (broadcast details, DVR status) and actions (play) into...
authorProfYaffle <ian@sproink.co.uk>
Sun, 15 Oct 2017 17:06:16 +0000 (18:06 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 16 Oct 2017 16:13:49 +0000 (18:13 +0200)
src/webui/static/app/epg.js

index 325361a2920ba137a0ebe6ef53f31737b6047bfb..5b916a1accbf30d51017aa7053bd09c4df1922f9 100644 (file)
@@ -417,7 +417,7 @@ tvheadend.epg = function() {
         new tvheadend.VideoPlayer(item.data.channelUuid);
     };
 
-    var actions = new Ext.ux.grid.RowActions({
+    var eventdetails = new Ext.ux.grid.RowActions({
         id: 'details',
         header: _('Details'),
         tooltip: _('Details'),
@@ -436,15 +436,24 @@ tvheadend.epg = function() {
                 qtip: _('Broadcast details'),
                 cb: detailsfcn
             },
+            {
+                iconIndex: 'dvrState'
+            }
+        ]
+    });
+
+    var eventactions = new Ext.ux.grid.RowActions({
+        id: 'eventactions',
+        header: _('Actions'),
+        tooltip: _('Actions'),
+        width: 67,
+        dataIndex: 'actions',
+        actions: [
             {
                 iconCls: 'watchTv',
                 qtip: _('Watch TV'),
                 cb: watchfcn
-            },
-            {
-                iconIndex: 'dvrState'
             }
-                                                                                                          
         ]
     });
 
@@ -557,7 +566,8 @@ tvheadend.epg = function() {
     var epgCm = new Ext.grid.ColumnModel({
         defaultSortable: true,
         columns: [
-            actions,
+            eventdetails,
+            eventactions,
             new Ext.ux.grid.ProgressColumn({
                 width: 100,
                 header: _("Progress"),
@@ -1032,7 +1042,7 @@ tvheadend.epg = function() {
         stateId: 'epggrid',
         enableDragDrop: false,
         cm: epgCm,
-        plugins: [filter, actions],
+        plugins: [filter, eventdetails, eventactions],
         title: _('Electronic Program Guide'),
         iconCls: 'epg',
         store: epgStore,
@@ -1050,7 +1060,7 @@ tvheadend.epg = function() {
                    state.filters = {};
                    /* Otherwise this non-resizable column will not expand to newly set width */
                    if (state.columns)
-                       state.columns[0].width = actions.width;
+                       state.columns[0].width = eventdetails.width;
                }
             }
         }