WEBUI DVR: Add more informative questions for the delete operation
This commit is contained in:
parent
da2ae270f5
commit
5ba389bd86
2 changed files with 14 additions and 4 deletions
|
@ -267,6 +267,8 @@ tvheadend.dvr_finished = function(panel, index) {
|
|||
iconCls: 'finishedRec',
|
||||
tabIndex: index,
|
||||
del: true,
|
||||
delquestion: 'Do you really want to delete the selected recordings?<br/><br/>' +
|
||||
'The associated file will be removed from the storage.',
|
||||
list: 'disp_title,episode,start_real,stop_real,' +
|
||||
'duration,filesize,channelname,creator,' +
|
||||
'sched_status,url,comment',
|
||||
|
@ -345,6 +347,8 @@ tvheadend.dvr_failed = function(panel, index) {
|
|||
iconCls: 'exclamation',
|
||||
tabIndex: index,
|
||||
del: true,
|
||||
delquestion: 'Do you really want to delete the selected recordings?<br/><br/>' +
|
||||
'The associated file will be removed from the storage.',
|
||||
list: 'disp_title,episode,start_real,stop_real,' +
|
||||
'duration,filesize,channelname,creator,' +
|
||||
'status,sched_status,url,comment',
|
||||
|
|
|
@ -1162,7 +1162,7 @@ tvheadend.idnode_grid = function(panel, conf)
|
|||
var uuids = [];
|
||||
for (var i = 0; i < r.length; i++)
|
||||
uuids.push(r[i].id);
|
||||
tvheadend.AjaxConfirm({
|
||||
c = {
|
||||
url: 'api/idnode/delete',
|
||||
params: {
|
||||
uuid: Ext.encode(uuids)
|
||||
|
@ -1172,7 +1172,10 @@ tvheadend.idnode_grid = function(panel, conf)
|
|||
if (!auto.getValue())
|
||||
store.reload();
|
||||
}
|
||||
});
|
||||
};
|
||||
if (conf.delquestion)
|
||||
c['question'] = conf.delquestion;
|
||||
tvheadend.AjaxConfirm(c);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -1644,7 +1647,7 @@ tvheadend.idnode_form_grid = function(panel, conf)
|
|||
disabled: true,
|
||||
handler: function() {
|
||||
if (current) {
|
||||
tvheadend.AjaxConfirm({
|
||||
var c = {
|
||||
url: 'api/idnode/delete',
|
||||
params: {
|
||||
uuid: current.uuid
|
||||
|
@ -1653,7 +1656,10 @@ tvheadend.idnode_form_grid = function(panel, conf)
|
|||
roweditor_destroy();
|
||||
store.reload();
|
||||
}
|
||||
});
|
||||
};
|
||||
if (conf.delquestion)
|
||||
c['delquestion'] = conf.delquestion;
|
||||
tvheadend.AjaxConfirm(c);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue