diff --git a/Qalbum.py b/Qalbum.py index 460fdf2..a1b982c 100755 --- a/Qalbum.py +++ b/Qalbum.py @@ -26,7 +26,7 @@ from datetime import datetime # (c) ville.rantanen@helsinki.fi -__version__='2.3' +__version__='2.4' webfilesearch=re.compile('.*index.html$|gallerystyle.css$|galleryscript.js$|descriptions.csv$|^info.txt$|\..*',re.I) imagesearch=re.compile('.*\.jpg$|.*\.jpeg$|.*\.gif$|.*\.png$|.*\.svg$|.*\.pdf$',re.I) diff --git a/galleryscript.js b/galleryscript.js index 5bb8991..0988cdb 100644 --- a/galleryscript.js +++ b/galleryscript.js @@ -1301,7 +1301,7 @@ function request(type) { if (type=="auto") { // Fetch ?auto=num seconds request and return the boolean if ((query[0]=="auto") && query.length>1 && query[1].length>0) { - var retval=parseInt(query[1]); + var retval=parseFloat(query[1]); if (isNaN(retval)) { return 0; } return retval; } @@ -1524,7 +1524,7 @@ function slidenextrestart() { } function slidesetupfromconfig() { var el=$('#configSlideInterval')[0]; - var newinterval=parseInt(el.value); + var newinterval=parseFloat(el.value); if (isNaN(newinterval)) { newinterval=0; } el.value=newinterval; slideshowinterval=newinterval;