mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
[Web UI] Clean up JavaScript code
This commit is contained in:
parent
52ff53b0b0
commit
e922275c72
4 changed files with 49 additions and 82 deletions
|
@ -234,17 +234,12 @@ initializeWindows = function() {
|
|||
|
||||
deleteFN = function() {
|
||||
var h = myTable.selectedIds();
|
||||
/*if(h.length && confirm('QBT_TR(Are you sure you want to delete the selected torrents from the transfer list?)QBT_TR')) {
|
||||
h.each(function(item, index){
|
||||
new Request({url: 'command/delete', method: 'post', data: {hash: item}}).send();
|
||||
});
|
||||
}*/
|
||||
if (h.length) {
|
||||
new MochaUI.Window({
|
||||
id: 'confirmDeletionPage',
|
||||
title: "QBT_TR(Deletion confirmation - qBittorrent)QBT_TR",
|
||||
title: "QBT_TR(Deletion confirmation)QBT_TR",
|
||||
loadMethod: 'iframe',
|
||||
contentURL: 'confirmdeletion.html?hashes=' + h.join(','),
|
||||
contentURL: 'confirmdeletion.html?hashes=' + h.join("|"),
|
||||
scrollbars: false,
|
||||
resizable: false,
|
||||
maximizable: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue