2017-11-02 12:14:27 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="${LANG}">
|
2018-04-05 11:59:31 +08:00
|
|
|
|
2010-02-14 15:15:35 +00:00
|
|
|
<head>
|
2018-03-21 14:34:37 +08:00
|
|
|
<meta charset="UTF-8" />
|
2018-06-14 12:54:23 +03:00
|
|
|
<title>QBT_TR(Trackers addition dialog)QBT_TR[CONTEXT=TrackersAdditionDialog]</title>
|
2018-12-28 13:35:49 -05:00
|
|
|
<link rel="stylesheet" href="css/style.css?v=${VERSION}" type="text/css" />
|
2018-04-02 01:04:42 +08: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 14:34:37 +08:00
|
|
|
<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({
|
2017-10-14 16:27:21 +03:00
|
|
|
url: 'api/v2/torrents/addTrackers',
|
2015-09-17 17:48:38 +02:00
|
|
|
method: 'post',
|
2017-10-14 16:27:21 +03:00
|
|
|
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>
|
2010-02-14 15:15:35 +00:00
|
|
|
</head>
|
2018-04-05 11:59:31 +08:00
|
|
|
|
2010-02-14 15:15:35 +00:00
|
|
|
<body>
|
2018-04-05 11:59:31 +08:00
|
|
|
<div style="text-align: center;">
|
|
|
|
<br/>
|
2018-06-14 12:54:23 +03:00
|
|
|
<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>
|
2010-02-14 15:15:35 +00:00
|
|
|
</body>
|
2018-04-05 11:59:31 +08:00
|
|
|
|
2010-02-14 15:15:35 +00:00
|
|
|
</html>
|