mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
WebUI: Fix deleting torrents
Fix possible showing "qBittorrent client is not reachable" message on deleting torrents.
This commit is contained in:
parent
05b557c27f
commit
a5e6cd256c
2 changed files with 6 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
||||||
window.parent.closeWindows();
|
window.parent.closeWindows();
|
||||||
});
|
});
|
||||||
$('confirmBtn').addEvent('click', function(e){
|
$('confirmBtn').addEvent('click', function(e){
|
||||||
|
parent.torrentsTable.deselectAll();
|
||||||
new Event(e).stop();
|
new Event(e).stop();
|
||||||
var cmd = 'command/delete';
|
var cmd = 'command/delete';
|
||||||
if($('deleteFromDiskCB').get('checked'))
|
if($('deleteFromDiskCB').get('checked'))
|
||||||
|
|
|
@ -194,6 +194,10 @@ var DynamicTable = new Class({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
deselectAll : function () {
|
||||||
|
this.cur.empty();
|
||||||
|
},
|
||||||
|
|
||||||
selectRow : function (rowId) {
|
selectRow : function (rowId) {
|
||||||
this.cur.empty();
|
this.cur.empty();
|
||||||
this.cur.push(rowId);
|
this.cur.push(rowId);
|
||||||
|
@ -423,7 +427,7 @@ var DynamicTable = new Class({
|
||||||
},
|
},
|
||||||
|
|
||||||
selectedRowsIds : function () {
|
selectedRowsIds : function () {
|
||||||
return this.cur;
|
return this.cur.slice();
|
||||||
},
|
},
|
||||||
|
|
||||||
getRowIds : function () {
|
getRowIds : function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue