qBittorrent/src/webui/www/private/addtrackers.html

40 lines
1.5 KiB
HTML
Raw Normal View History

2017-11-02 12:14:27 +03:00
<!DOCTYPE html>
<html lang="${LANG}">
<head>
2017-10-11 15:27:19 +03:00
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>QBT_TR(Trackers addition dialog)QBT_TR[CONTEXT=TrackersAdditionDlg]</title>
2017-10-11 15:27:19 +03:00
<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>
2015-09-17 18:48:38 +03:00
<script type="text/javascript">
window.addEvent('domready', function(){
$('trackersUrls').focus();
$('addTrackersButton').addEvent('click', function(e){
new Event(e).stop();
var hash = new URI().getData('hash');
new Request({
url: 'api/v2/torrents/addTrackers',
2015-09-17 18:48:38 +03:00
method: 'post',
data: {
hash: hash,
urls: $('trackersUrls').value
},
2015-09-17 18:48:38 +03:00
onComplete: function() {
window.parent.closeWindows();
}
}).send();
});
});
</script>
</head>
<body>
2017-11-02 12:14:27 +03:00
<div style="text-align: center;">
2017-10-11 15:27:19 +03:00
<br/>
<h2 class="vcenter">QBT_TR(List of trackers to add (one per line):)QBT_TR[CONTEXT=TrackersAdditionDlg]</h2>
2017-10-11 15:27:19 +03:00
<textarea name="list" id="trackersUrls" rows="10" cols="1"></textarea>
<br/>
<input type="button" value="QBT_TR(Add)QBT_TR[CONTEXT=HttpServer]" id="addTrackersButton"/>
2017-11-02 12:14:27 +03:00
</div>
</body>
</html>