parseInt to make comparisons work...

This commit is contained in:
Frank de Lange 2022-03-02 01:53:24 +00:00
parent 4d12b745be
commit 2ff18a0646
6 changed files with 3 additions and 3 deletions

View file

@ -827,8 +827,8 @@ $UPDATE_RATE=$settings['update_rate'];
id = basename(url);
max=document.getElementById('max-' + id);
keep=document.getElementById('keep-' + id);
maxval = max.value;
keepval = keep.value;
maxval = parseInt(max.value);
keepval = parseInt(keep.value);
if(maxval > keepval) {
keeper = (maxval > 2) ? 5 : 2;
if (confirm("Sync count " + maxval + " is higher than Keep count " + keepval + "\n\n" +