From 2d7138839d16d7c139e39a79535f7037e88f720a Mon Sep 17 00:00:00 2001 From: Tom Piccirello Date: Sun, 18 Nov 2018 22:44:27 -0500 Subject: [PATCH] Fix WebUI bug on override of Start Download option Disabled form values aren't submitted, causing the add_paused value not to be sent when Start Torrent was checked. qBittorrent would then fall back to the global Start Download preference. Closes #9855. --- src/webui/www/private/download.html | 4 ++-- src/webui/www/private/upload.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/webui/www/private/download.html b/src/webui/www/private/download.html index 6073cce8d..a2312ddc8 100644 --- a/src/webui/www/private/download.html +++ b/src/webui/www/private/download.html @@ -38,7 +38,7 @@
- +
@@ -84,7 +84,7 @@ }); $('start_torrent').addEventListener('change', function() { - $('add_paused').disabled = $('start_torrent').checked; + $('add_paused').value = !$('start_torrent').checked; });
diff --git a/src/webui/www/private/upload.html b/src/webui/www/private/upload.html index 6b71cff90..ba07e781d 100644 --- a/src/webui/www/private/upload.html +++ b/src/webui/www/private/upload.html @@ -32,7 +32,7 @@
- +
@@ -77,7 +77,7 @@ }); $('start_torrent').addEventListener('change', function() { - $('add_paused').disabled = $('start_torrent').checked; + $('add_paused').value = !$('start_torrent').checked; });