[webui] no need to check if we have selected any items when pressing Delete,
the button is unclickable when nothing is selected
This commit is contained in:
parent
e43b0e6e00
commit
073169ae9c
1 changed files with 3 additions and 11 deletions
|
@ -43,17 +43,9 @@ tvheadend.tableEditor = function(title, dtable, cm, rec, plugins, store,
|
|||
;
|
||||
|
||||
function delSelected() {
|
||||
var selectedKeys = grid.selModel.selections.keys;
|
||||
if (selectedKeys.length > 0) {
|
||||
Ext.MessageBox.confirm('Message',
|
||||
'Do you really want to delete selection?', deleteRecord);
|
||||
}
|
||||
else {
|
||||
Ext.MessageBox.alert('Message',
|
||||
'Please select at least one item to delete');
|
||||
}
|
||||
}
|
||||
;
|
||||
Ext.MessageBox.confirm('Message',
|
||||
'Do you really want to delete selection?', deleteRecord);
|
||||
};
|
||||
|
||||
function deleteRecord(btn) {
|
||||
if (btn === 'yes') {
|
||||
|
|
Loading…
Add table
Reference in a new issue