diff --git a/src/webui/www/private/download.html b/src/webui/www/private/download.html
index ab19a160d..c420a3be9 100644
--- a/src/webui/www/private/download.html
+++ b/src/webui/www/private/download.html
@@ -72,11 +72,11 @@
-
+
|
-
-
+
+
|
@@ -89,10 +89,11 @@
-
+
|
-
+
+
|
@@ -151,6 +152,9 @@
var submitted = false;
$('downloadForm').addEventListener("submit", function() {
+ $('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true';
+ $('rootFolderHidden').value = $('rootFolder').checked ? 'true' : 'false';
+
$('download_spinner').style.display = "block";
submitted = true;
});
@@ -159,10 +163,6 @@
if (submitted)
window.parent.closeWindows();
});
-
- $('start_torrent').addEventListener('change', function() {
- $('add_paused').value = !$('start_torrent').checked;
- });