]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: Deleted name text from previous / next buttons, hide "Record program" button...
authorpablozg <pablozg@gmail.com>
Sat, 22 Sep 2018 18:37:39 +0000 (20:37 +0200)
committerperexg <perex@perex.cz>
Wed, 26 Sep 2018 15:30:34 +0000 (17:30 +0200)
src/webui/static/app/dvr.js
src/webui/static/app/epg.js

index 3863e7762b4e9204958dd12902f6977efa56f3dc..fa6391f2c433d9d772bbf0a7c4eb1787ecbe0944 100644 (file)
@@ -180,14 +180,12 @@ tvheadend.dvrDetails = function(grid, index) {
               handler: previousEvent,
               iconCls: 'previous',
               tooltip: _('Go to previous event'),
-              text: _("Previous"),
         }));
         buttons.push(new Ext.Button({
             id: nextButtonId,
             handler: nextEvent,
             iconCls: 'next',
             tooltip: _('Go to next event'),
-            text: _("Next"),
         }));
 
     return buttons;
@@ -202,7 +200,7 @@ tvheadend.dvrDetails = function(grid, index) {
             title: dialogTitle,
             iconCls: 'info',
             layout: 'fit',
-            width: 650,
+            width: 760,
             height: windowHeight,
             constrainHeader: true,
             buttonAlign: 'center',
index 9a9743567e8fa96892fb436c0902a264175ee08d..7e57e7e28bdfead78ee55a2b07c2240b7f93ade3 100644 (file)
@@ -323,12 +323,15 @@ tvheadend.epgDetails = function(grid, index) {
           });
 
           buttons.push(confcombo);
-          buttons.push(new Ext.Button({
-              handler: recordEvent,
-              iconCls: 'rec',
-              tooltip: _('Record this program now'),
-              text: _('Record program')
-          }));
+          // If the event is recording or the event is scheduled, we disable the record button
+          if (!recording && !scheduled) {
+            buttons.push(new Ext.Button({
+                handler: recordEvent,
+                iconCls: 'rec',
+                tooltip: _('Record this program now'),
+                text: _('Record program')
+            }));
+          }
           buttons.push(new Ext.Button({
               handler: recordSeries,
               iconCls: 'autoRec',
@@ -340,14 +343,12 @@ tvheadend.epgDetails = function(grid, index) {
               handler: previousEvent,
               iconCls: 'previous',
               tooltip: _('Go to previous event'),
-              text: _("Previous"),
           }));
           buttons.push(new Ext.Button({
               id: nextButtonId,
               handler: nextEvent,
               iconCls: 'next',
               tooltip: _('Go to next event'),
-              text: _("Next"),
           }));
 
       } else {
@@ -372,7 +373,7 @@ tvheadend.epgDetails = function(grid, index) {
         title: title,
         iconCls: 'broadcast_details',
         layout: 'fit',
-        width: 850,
+        width: 760,
         height: windowHeight,
         constrainHeader: true,
         buttons: buttons,