mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 23:52:31 -06:00
Convert to the proper type
This commit is contained in:
@@ -2101,7 +2101,7 @@
|
|||||||
// Share Ratio Limiting
|
// Share Ratio Limiting
|
||||||
let max_ratio = -1;
|
let max_ratio = -1;
|
||||||
if ($('max_ratio_checkbox').getProperty('checked')) {
|
if ($('max_ratio_checkbox').getProperty('checked')) {
|
||||||
max_ratio = $('max_ratio_value').getProperty('value');
|
max_ratio = $('max_ratio_value').getProperty('value').toFloat();
|
||||||
if (isNaN(max_ratio) || (max_ratio < 0) || (max_ratio > 9998)) {
|
if (isNaN(max_ratio) || (max_ratio < 0) || (max_ratio > 9998)) {
|
||||||
alert("QBT_TR(Share ratio limit must be between 0 and 9998.)QBT_TR[CONTEXT=HttpServer]");
|
alert("QBT_TR(Share ratio limit must be between 0 and 9998.)QBT_TR[CONTEXT=HttpServer]");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user