Browse Source

Convert to the proper type

adaptive-webui-19844
Chocobo1 4 years ago
parent
commit
ed2756b885
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/webui/www/private/views/preferences.html

2
src/webui/www/private/views/preferences.html

@ -2101,7 +2101,7 @@ @@ -2101,7 +2101,7 @@
// Share Ratio Limiting
let max_ratio = -1;
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)) {
alert("QBT_TR(Share ratio limit must be between 0 and 9998.)QBT_TR[CONTEXT=HttpServer]");
return;

Loading…
Cancel
Save