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

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
dist/spodcast-0.4.3.tar.gz vendored Normal file

Binary file not shown.

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = spodcast name = spodcast
version = 0.4.2 version = 0.4.3
description = A caching Spotify podcast to RSS proxy. description = A caching Spotify podcast to RSS proxy.
long_description = file:README.md long_description = file:README.md
long_description_content_type = text/markdown long_description_content_type = text/markdown

View file

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