mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Normalize Web API method names. Allow to use alternative Web UI. Switch Web API version to standard form (i.e. "2.0"). Improve Web UI translation code. Retranslate changed files. Add Web API for RSS subsystem.
47 lines
2.1 KiB
HTML
47 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="${LANG}">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<title>QBT_TR(Deletion confirmation - qBittorrent)QBT_TR[CONTEXT=confirmDeletionDlg]</title>
|
|
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
|
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
|
|
<script type="text/javascript" src="scripts/mootools-1.2-more.js" charset="utf-8"></script>
|
|
<script type="text/javascript">
|
|
var hashes = new URI().getData('hashes').split('|');
|
|
window.addEvent('domready', function(){
|
|
$('cancelBtn').focus();
|
|
$('cancelBtn').addEvent('click', function(e){
|
|
new Event(e).stop();
|
|
window.parent.closeWindows();
|
|
});
|
|
$('confirmBtn').addEvent('click', function(e){
|
|
parent.torrentsTable.deselectAll();
|
|
new Event(e).stop();
|
|
var cmd = 'api/v2/torrents/delete';
|
|
var deleteFiles = $('deleteFromDiskCB').get('checked');
|
|
new Request({
|
|
url: cmd,
|
|
method: 'post',
|
|
data: {
|
|
'hashes': hashes.join('|'),
|
|
'deleteFiles': deleteFiles
|
|
},
|
|
onComplete: function() {
|
|
window.parent.closeWindows();
|
|
}
|
|
}).send();
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<br/>
|
|
|
|
<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>
|
|
</body>
|
|
</html>
|