[Web UI] Clean up JavaScript code

This commit is contained in:
ngosang 2015-09-17 17:48:38 +02:00
parent 52ff53b0b0
commit e922275c72
4 changed files with 49 additions and 82 deletions

View file

@ -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,