mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Added danger border class for preferences (#7569)
This commit is contained in:
parent
849f45d30d
commit
c48f317829
2 changed files with 8 additions and 1 deletions
|
|
@ -324,13 +324,20 @@ function prefsInputFieldPrefs(label, comment, prekey, key, default_value, _input
|
|||
|
||||
/* Incorrect value, text danger class! */
|
||||
if(value < min_value || value > max_value) {
|
||||
this.classList.add('text-danger');
|
||||
this.classList.add('ntopng-input-error');
|
||||
$("#]] print("input_error_" .. key) print[[").removeAttr('hidden');
|
||||
} else {
|
||||
this.classList.remove('text-danger');
|
||||
this.classList.remove('ntopng-input-error');
|
||||
$("#]] print("input_error_" .. key) print[[").attr('hidden', true);
|
||||
}
|
||||
});
|
||||
$("#]] print("id_input_" .. key) print[[").on( "focusin", function(tmp) {
|
||||
this.classList.remove('text-danger');
|
||||
this.classList.remove('ntopng-input-error');
|
||||
$("#]] print("input_error_" .. key) print[[").attr('hidden', true);
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue