#30: also convert to number on the client side
This commit is contained in:
parent
292bc6114e
commit
45e480839a
@ -211,7 +211,7 @@ function save_settings() {
|
|||||||
settings['found_on'] = found_on;
|
settings['found_on'] = found_on;
|
||||||
}
|
}
|
||||||
|
|
||||||
let circulation = $('#circulation').val();
|
let circulation = Number(String($('#circulation').val()).replace('/./g', ''));
|
||||||
if (isNaN(parseInt(circulation)) || circulation < 0 || circulation > 1000000000) {
|
if (isNaN(parseInt(circulation)) || circulation < 0 || circulation > 1000000000) {
|
||||||
settings['circulation'] = 0;
|
settings['circulation'] = 0;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user