From 763a50bd88b316d995e0eb4af4ae799deb3e73b1 Mon Sep 17 00:00:00 2001 From: Vladimir Golovnev Date: Wed, 30 Apr 2025 16:44:46 +0300 Subject: [PATCH] Apply suggestions from code review --- src/webui/www/private/views/preferences.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/www/private/views/preferences.html b/src/webui/www/private/views/preferences.html index 3d2b82b5d..c8ef9de78 100644 --- a/src/webui/www/private/views/preferences.html +++ b/src/webui/www/private/views/preferences.html @@ -2924,7 +2924,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD if (document.getElementById("maxSeedingTimeCheckbox").checked) { maxSeedingTime = Number(document.getElementById("maxSeedingTimeValue").value); if (Number.isNaN(maxSeedingTime) || (maxSeedingTime < 0)) { - alert("QBT_TR(Seeding time limit must have a positive value.)QBT_TR[CONTEXT=HttpServer]"); + alert("QBT_TR(Seeding time limit must not have a negative value.)QBT_TR[CONTEXT=HttpServer]"); return; } } @@ -2935,7 +2935,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD if (document.getElementById("maxInactiveSeedingTimeCheckbox").checked) { maxInactiveSeedingTime = Number(document.getElementById("maxInactiveSeedingTimeValue").value); if (Number.isNaN(maxInactiveSeedingTime) || (maxInactiveSeedingTime < 0)) { - alert("QBT_TR(Seeding time limit must have a positive value.)QBT_TR[CONTEXT=HttpServer]"); + alert("QBT_TR(Seeding time limit must not have a negative value.)QBT_TR[CONTEXT=HttpServer]"); return; } }