Browse Source

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.
adaptive-webui-19844
Thomas Piccirello 6 years ago
parent
commit
abf43b695b
  1. 3
      src/webui/www/private/scripts/download.js

3
src/webui/www/private/scripts/download.js

@ -56,6 +56,9 @@ getPreferences = function() {
if (pref) { if (pref) {
defaultSavePath = pref.save_path; defaultSavePath = pref.save_path;
$('savepath').setProperty('value', defaultSavePath); $('savepath').setProperty('value', defaultSavePath);
$('root_folder').checked = pref.create_subfolder_enabled;
$('start_torrent').checked = !pref.start_paused_enabled;
if (pref.auto_tmm_enabled == 1) { if (pref.auto_tmm_enabled == 1) {
$('autoTMM').selectedIndex = 1; $('autoTMM').selectedIndex = 1;
$('savepath').disabled = true; $('savepath').disabled = true;

Loading…
Cancel
Save