From: pablozg Date: Sat, 22 Sep 2018 18:37:39 +0000 (+0200) Subject: webui: Deleted name text from previous / next buttons, hide "Record program" button... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c00a0fa866f011be178968f11562744b2494db7;p=thirdparty%2Ftvheadend.git webui: Deleted name text from previous / next buttons, hide "Record program" button when the event is scheduled or recording --- diff --git a/src/webui/static/app/dvr.js b/src/webui/static/app/dvr.js index 3863e7762..fa6391f2c 100644 --- a/src/webui/static/app/dvr.js +++ b/src/webui/static/app/dvr.js @@ -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', diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index 9a9743567..7e57e7e28 100644 --- a/src/webui/static/app/epg.js +++ b/src/webui/static/app/epg.js @@ -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,