mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-11 01:44:58 -06:00
Add ability to pass urls to the webui download page
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/Window.css" 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 src="scripts/download.js"></script>
|
||||
<script src="scripts/misc.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -71,6 +73,17 @@
|
||||
</div>
|
||||
</form>
|
||||
<script>
|
||||
var encodedUrls = new URI().getData('urls');
|
||||
if (encodedUrls) {
|
||||
var urls = [];
|
||||
encodedUrls.split('|').each(function(url) {
|
||||
urls.push(decodeURIComponent(url));
|
||||
});
|
||||
|
||||
if (urls.length)
|
||||
$('urls').set('value', escapeHtml(urls.join("\n")));
|
||||
}
|
||||
|
||||
var submitted = false;
|
||||
|
||||
$('downloadForm').addEventListener("submit", function() {
|
||||
|
||||
Reference in New Issue
Block a user