mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 22:52:33 -06:00
Add ability to use 'shift+delete' to delete torrents in WebUI
Closes #13827.
This commit is contained in:
committed by
sledgehammer999
parent
8c48bf4a70
commit
f266184514
@@ -376,14 +376,14 @@ const initializeWindows = function() {
|
||||
}
|
||||
};
|
||||
|
||||
deleteFN = function() {
|
||||
deleteFN = function(deleteFiles = false) {
|
||||
const hashes = torrentsTable.selectedRowsIds();
|
||||
if (hashes.length) {
|
||||
new MochaUI.Window({
|
||||
id: 'confirmDeletionPage',
|
||||
title: "QBT_TR(Deletion confirmation)QBT_TR[CONTEXT=confirmDeletionDlg]",
|
||||
loadMethod: 'iframe',
|
||||
contentURL: 'confirmdeletion.html?hashes=' + hashes.join("|"),
|
||||
contentURL: ('confirmdeletion.html?hashes=' + hashes.join("|") + '&deleteFiles=' + deleteFiles),
|
||||
scrollbars: false,
|
||||
resizable: false,
|
||||
maximizable: false,
|
||||
|
||||
Reference in New Issue
Block a user