diff --git a/src/webui/www/private/download.html b/src/webui/www/private/download.html
index 3d2bc6b0d..771c777f3 100644
--- a/src/webui/www/private/download.html
+++ b/src/webui/www/private/download.html
@@ -72,11 +72,11 @@
-
+
|
-
-
+
+
|
@@ -89,10 +89,11 @@
-
+
|
-
+
+
|
@@ -149,6 +150,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;
});
@@ -157,10 +161,6 @@
if (submitted)
window.parent.closeWindows();
});
-
- $('start_torrent').addEventListener('change', function() {
- $('add_paused').value = !$('start_torrent').checked;
- });