From abf43b695b11c385b9e6f568c4504cd02cdc42dd Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Fri, 19 Oct 2018 02:11:10 -0400 Subject: [PATCH] Set WebUI download options using set preferences "Start torrent" and "Create subfolder" are now set depending on the user's set preferences, which matches the behavior exhibited by the GUI. --- src/webui/www/private/scripts/download.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/webui/www/private/scripts/download.js b/src/webui/www/private/scripts/download.js index f6d0c0bb8..049e98741 100644 --- a/src/webui/www/private/scripts/download.js +++ b/src/webui/www/private/scripts/download.js @@ -56,6 +56,9 @@ getPreferences = function() { if (pref) { defaultSavePath = pref.save_path; $('savepath').setProperty('value', defaultSavePath); + $('root_folder').checked = pref.create_subfolder_enabled; + $('start_torrent').checked = !pref.start_paused_enabled; + if (pref.auto_tmm_enabled == 1) { $('autoTMM').selectedIndex = 1; $('savepath').disabled = true;