webui: dvr.js remove extra whitespaces

This commit is contained in:
Jaroslav Kysela 2014-08-06 10:21:31 +02:00
parent fa0bba6c25
commit fd5a8a498a
2 changed files with 18 additions and 18 deletions

View file

@ -414,7 +414,7 @@ tvheadend.dvrschedule = function(title, iconCls, dvrStore) {
});
/* Bottom toolbar to include default previous/goto-page/next and refresh buttons, also number-of-items combobox */
var bbar = new Ext.PagingToolbar({
store : dvrStore,
displayInfo : true,
@ -422,14 +422,14 @@ tvheadend.dvrschedule = function(title, iconCls, dvrStore) {
displayMsg : 'Programs {0} - {1} of {2}',
emptyMsg : "No programs to display"
});
function abortEntry(btn) {
if (btn !== 'yes')
return;
var selectedKeys = panel.selModel.selections.keys;
// Delete each entry one by one since the API doesn't support deleting
// Delete each entry one by one since the API doesn't support deleting
// multiple
for (var i = 0; i < selectedKeys.length; i++) {
var recordingId = selectedKeys[i];
@ -453,7 +453,7 @@ tvheadend.dvrschedule = function(title, iconCls, dvrStore) {
var selectedKeys = panel.selModel.selections.keys;
// Delete each entry one by one since the API doesn't support deleting
// Delete each entry one by one since the API doesn't support deleting
// multiple
for (var i = 0; i < selectedKeys.length; i++) {
var recordingId = selectedKeys[i];
@ -473,17 +473,17 @@ tvheadend.dvrschedule = function(title, iconCls, dvrStore) {
});
}
};
function abortSelected() {
Ext.MessageBox.confirm('Message',
'Do you really want to abort/unschedule the selection?', abortEntry);
};
function deleteSelected() {
Ext.MessageBox.confirm('Message',
'Do you really want to delete the selection?', deleteEntry);
};
var abortButton = new Ext.Toolbar.Button({
tooltip: 'Abort or unschedule one or more selected rows',
iconCls: 'remove',
@ -491,7 +491,7 @@ tvheadend.dvrschedule = function(title, iconCls, dvrStore) {
handler: abortSelected,
disabled: true
});
var deleteButton = new Ext.Toolbar.Button({
tooltip: 'Delete one or more selected rows',
iconCls: 'remove',
@ -499,12 +499,12 @@ tvheadend.dvrschedule = function(title, iconCls, dvrStore) {
handler: deleteSelected,
disabled: true
});
// Make multiple rows selectable
var selModel = new Ext.grid.RowSelectionModel({
singleSelect: false
});
// Enable/disable some buttons when nothing is selected
selModel.on('selectionchange', function(self) {
if (self.getCount() > 0) {
@ -516,10 +516,10 @@ tvheadend.dvrschedule = function(title, iconCls, dvrStore) {
abortButton.disable();
}
});
// Define which panel buttons should be visible
var panelButtons = [];
// Add the "Add entry" and "Abort" buttons only to "Upcoming recordings"
if (iconCls === 'clock') {
panelButtons.push([
@ -536,10 +536,10 @@ tvheadend.dvrschedule = function(title, iconCls, dvrStore) {
else {
panelButtons.push(deleteButton);
}
// Add the help button to all panels
panelButtons.push([
'->',
'->',
{
text: 'Help',
handler: function() {

View file

@ -295,9 +295,9 @@ tvheadend.epg = function() {
name: 'serieslink'
}])
});
/**
* Listener for DVR notifications. We want to update the EPG grid when a
* Listener for DVR notifications. We want to update the EPG grid when a
* recording is finished/deleted etc. so the status icon gets updated.
*/
tvheadend.comet.on('dvrdb', function() {