2017-11-02 12:14:27 +03:00
<!DOCTYPE html>
< html lang = "${LANG}" >
2018-04-05 06:59:31 +03:00
2010-12-15 22:51:19 +03:00
< head >
2018-03-21 09:34:37 +03:00
< meta charset = "UTF-8" / >
2017-05-01 01:45:02 +03:00
< title > QBT_TR(Deletion confirmation - qBittorrent)QBT_TR[CONTEXT=confirmDeletionDlg]< / title >
2015-09-17 18:48:38 +03:00
< link rel = "stylesheet" href = "css/style.css" type = "text/css" / >
2018-04-01 20:04:42 +03:00
< script src = "scripts/lib/mootools-1.2-core-yc.js" > < / script >
< script src = "scripts/lib/mootools-1.2-more.js" > < / script >
2018-03-21 09:34:37 +03:00
< script >
2015-09-17 18:48:38 +03:00
var hashes = new URI().getData('hashes').split('|');
2018-04-05 06:59:31 +03:00
window.addEvent('domready', function() {
2015-09-17 18:48:38 +03:00
$('cancelBtn').focus();
2018-04-05 06:59:31 +03:00
$('cancelBtn').addEvent('click', function(e) {
2015-09-17 18:48:38 +03:00
new Event(e).stop();
window.parent.closeWindows();
});
2018-04-05 06:59:31 +03:00
$('confirmBtn').addEvent('click', function(e) {
2016-01-10 12:00:29 +03:00
parent.torrentsTable.deselectAll();
2015-09-17 18:48:38 +03:00
new Event(e).stop();
2017-10-14 16:27:21 +03:00
var cmd = 'api/v2/torrents/delete';
var deleteFiles = $('deleteFromDiskCB').get('checked');
2015-09-17 18:48:38 +03:00
new Request({
url: cmd,
method: 'post',
data: {
2017-10-14 16:27:21 +03:00
'hashes': hashes.join('|'),
'deleteFiles': deleteFiles
2015-09-17 18:48:38 +03:00
},
onComplete: function() {
window.parent.closeWindows();
}
}).send();
});
});
< / script >
2010-12-15 22:51:19 +03:00
< / head >
2018-04-05 06:59:31 +03:00
2010-12-15 22:51:19 +03:00
< body >
2018-04-05 06:59:31 +03:00
< br / >
2010-12-15 22:51:19 +03:00
2018-04-05 06:59:31 +03:00
< p > QBT_TR(Are you sure you want to delete the selected torrents from the transfer list?)QBT_TR[CONTEXT=HttpServer]< / p >
< input type = "checkbox" id = "deleteFromDiskCB" / > < label for = "deleteFromDiskCB" > < i > QBT_TR(Also delete the files on the hard disk)QBT_TR[CONTEXT=confirmDeletionDlg]< / i > < / label > < br / > < br / >
< div style = "text-align: right;" >
< input type = "button" id = "cancelBtn" value = "QBT_TR(No)QBT_TR[CONTEXT=MainWindow]" / > < input type = "button" id = "confirmBtn" value = "QBT_TR(Yes)QBT_TR[CONTEXT=MainWindow]" / >
< / div >
2010-12-15 22:51:19 +03:00
< / body >
2018-04-05 06:59:31 +03:00
2010-12-15 22:51:19 +03:00
< / html >