mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix max value handling in prefs input.
This commit is contained in:
parent
ad04839c4d
commit
7a27d531a4
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ function prefsInputFieldPrefs(label, comment, prekey, key, default_value, _input
|
|||
const value = Number(this.value);
|
||||
|
||||
/* Incorrect value, text danger class! */
|
||||
if(value < min_value || value > max_value) {
|
||||
if(value < min_value || (max_value != 0 && value > max_value)) {
|
||||
this.classList.add('text-danger');
|
||||
this.classList.add('ntopng-input-error');
|
||||
$("#]] print("input_error_" .. key) print[[").removeAttr('hidden');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue