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;
title: dialogTitle,
iconCls: 'info',
layout: 'fit',
- width: 650,
+ width: 760,
height: windowHeight,
constrainHeader: true,
buttonAlign: 'center',
});
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',
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 {
title: title,
iconCls: 'broadcast_details',
layout: 'fit',
- width: 850,
+ width: 760,
height: windowHeight,
constrainHeader: true,
buttons: buttons,