1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-15 17:20:06 +00:00
qBittorrent/src/webui/www/private/addtrackers.html

63 lines
2.1 KiB
HTML
Raw Normal View History

2017-11-02 12:14:27 +03:00
<!DOCTYPE html>
<html lang="${LANG}">
2018-04-05 11:59:31 +08:00
<head>
<meta charset="UTF-8" />
<title>QBT_TR(Trackers addition dialog)QBT_TR[CONTEXT=TrackersAdditionDialog]</title>
<link rel="stylesheet" href="css/style.css?v=${CACHEID}" type="text/css" />
<script src="scripts/lib/mootools-1.2-core-yc.js"></script>
<script src="scripts/lib/mootools-1.2-more.js"></script>
<script>
2018-11-30 18:30:26 +08:00
'use strict';
2018-04-05 11:59:31 +08:00
window.addEvent('domready', function() {
2019-01-10 15:49:35 -08:00
new Keyboard({
2018-10-21 19:42:56 -04:00
defaultEventType: 'keydown',
events: {
2019-01-13 22:02:07 -08:00
'Enter': function(event) {
2018-10-21 19:42:56 -04:00
$('addTrackersButton').click();
event.preventDefault();
2019-01-10 15:49:35 -08:00
},
'Escape': function(event) {
window.parent.closeWindows();
event.preventDefault();
},
'Esc': function(event) {
window.parent.closeWindows();
event.preventDefault();
2018-10-21 19:42:56 -04:00
}
}
2019-01-10 15:49:35 -08:00
}).activate();
2018-10-21 19:42:56 -04:00
2015-09-17 17:48:38 +02:00
$('trackersUrls').focus();
2018-04-05 11:59:31 +08:00
$('addTrackersButton').addEvent('click', function(e) {
2015-09-17 17:48:38 +02:00
new Event(e).stop();
var hash = new URI().getData('hash');
new Request({
url: 'api/v2/torrents/addTrackers',
2015-09-17 17:48:38 +02:00
method: 'post',
data: {
hash: hash,
urls: $('trackersUrls').value
},
2015-09-17 17:48:38 +02:00
onComplete: function() {
window.parent.closeWindows();
}
}).send();
2018-04-05 11:59:31 +08:00
});
2015-09-17 17:48:38 +02:00
});
</script>
</head>
2018-04-05 11:59:31 +08:00
<body>
2018-04-05 11:59:31 +08:00
<div style="text-align: center;">
<br/>
<h2 class="vcenter">QBT_TR(List of trackers to add (one per line):)QBT_TR[CONTEXT=TrackersAdditionDialog]</h2>
2018-04-05 11:59:31 +08: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" />
</div>
</body>
2018-04-05 11:59:31 +08:00
</html>