mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-09 04:08:16 +08:00
Merge pull request #14089 from glassez/fix-webui
Don't call non-existent elements
This commit is contained in:
commit
f1337524f6
@ -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