#30: also convert to number on the client side

This commit is contained in:
koksnuss 2020-05-19 23:01:06 +02:00
parent 292bc6114e
commit 45e480839a

View File

@ -211,7 +211,7 @@ function save_settings() {
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) {
settings['circulation'] = 0;
} else {