Browse Source

Don't call non-existent elements

Fixed a regression where the script tries to access elements that no longer
exist on the page, because they were replaced with others by a previous change.
adaptive-webui-19844
Vladimir Golovnev (Glassez) 4 years ago
parent
commit
3af2168b02
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 1
      src/webui/www/private/scripts/download.js

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

@ -72,7 +72,6 @@ window.qBittorrent.Download = (function() {
defaultSavePath = pref.save_path; defaultSavePath = pref.save_path;
$('savepath').setProperty('value', defaultSavePath); $('savepath').setProperty('value', defaultSavePath);
$('rootFolder').checked = pref.create_subfolder_enabled;
$('startTorrent').checked = !pref.start_paused_enabled; $('startTorrent').checked = !pref.start_paused_enabled;
if (pref.auto_tmm_enabled == 1) { if (pref.auto_tmm_enabled == 1) {

Loading…
Cancel
Save