mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 21:28:07 -06:00
Fix delete button in Web UI
This commit is contained in:
@@ -48,10 +48,14 @@ window.addEvent('domready', function(){
|
||||
var cmd = '/command/delete';
|
||||
if($('deleteFromDiskCB').get('checked'))
|
||||
cmd = '/command/deletePerm';
|
||||
hashes.each(function(item, index){
|
||||
new Request({url: cmd, method: 'post', data: {hash: item}}).send();
|
||||
});
|
||||
window.parent.document.getElementById('confirmDeletionPage').parentNode.removeChild(window.parent.document.getElementById('confirmDeletionPage'));
|
||||
new Request({url: cmd,
|
||||
method: 'post',
|
||||
data: {hashes: hashes.join('|')},
|
||||
onComplete: function() {
|
||||
window.parent.document.getElementById('confirmDeletionPage').parentNode.removeChild(window.parent.document.getElementById('confirmDeletionPage'));
|
||||
}
|
||||
}).send();
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user