parse circulation correct on the client side
This commit is contained in:
parent
fc6ecc6d64
commit
7c87d4d41f
@ -211,8 +211,8 @@ function save_settings() {
|
|||||||
settings['found_on'] = found_on;
|
settings['found_on'] = found_on;
|
||||||
}
|
}
|
||||||
|
|
||||||
let circulation = Number(String($('#circulation').val()).replace('/./g', ''));
|
let circulation = parseInt(String($('#circulation').val()).split('.').join(''));
|
||||||
if (isNaN(parseInt(circulation)) || circulation < 0 || circulation > 1000000000) {
|
if (isNaN(circulation) || circulation < 0 || circulation > 1000000000) {
|
||||||
settings['circulation'] = 0;
|
settings['circulation'] = 0;
|
||||||
} else {
|
} else {
|
||||||
settings['circulation'] = circulation;
|
settings['circulation'] = circulation;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user