mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-09 04:08:16 +08:00
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.
This commit is contained in:
parent
cc9b1ea8a1
commit
690dbc4725
@ -157,7 +157,6 @@
|
||||
|
||||
$('downloadForm').addEventListener("submit", function() {
|
||||
$('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true';
|
||||
$('rootFolderHidden').value = $('rootFolder').checked ? 'true' : 'false';
|
||||
|
||||
$('dlLimitHidden').value = $('dlLimitText').value.toInt() * 1024;
|
||||
$('upLimitHidden').value = $('upLimitText').value.toInt() * 1024;
|
||||
|
@ -134,7 +134,6 @@
|
||||
|
||||
$('uploadForm').addEventListener("submit", function() {
|
||||
$('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true';
|
||||
$('rootFolderHidden').value = $('rootFolder').checked ? 'true' : 'false';
|
||||
|
||||
$('dlLimitHidden').value = $('dlLimitText').value.toInt() * 1024;
|
||||
$('upLimitHidden').value = $('upLimitText').value.toInt() * 1024;
|
||||
|
Loading…
Reference in New Issue
Block a user