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
690dbc4725
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 1
      src/webui/www/private/download.html
  2. 1
      src/webui/www/private/upload.html

1
src/webui/www/private/download.html

@ -157,7 +157,6 @@
$('downloadForm').addEventListener("submit", function() { $('downloadForm').addEventListener("submit", function() {
$('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true'; $('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true';
$('rootFolderHidden').value = $('rootFolder').checked ? 'true' : 'false';
$('dlLimitHidden').value = $('dlLimitText').value.toInt() * 1024; $('dlLimitHidden').value = $('dlLimitText').value.toInt() * 1024;
$('upLimitHidden').value = $('upLimitText').value.toInt() * 1024; $('upLimitHidden').value = $('upLimitText').value.toInt() * 1024;

1
src/webui/www/private/upload.html

@ -134,7 +134,6 @@
$('uploadForm').addEventListener("submit", function() { $('uploadForm').addEventListener("submit", function() {
$('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true'; $('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true';
$('rootFolderHidden').value = $('rootFolder').checked ? 'true' : 'false';
$('dlLimitHidden').value = $('dlLimitText').value.toInt() * 1024; $('dlLimitHidden').value = $('dlLimitText').value.toInt() * 1024;
$('upLimitHidden').value = $('upLimitText').value.toInt() * 1024; $('upLimitHidden').value = $('upLimitText').value.toInt() * 1024;

Loading…
Cancel
Save