new version, slide timer as float

This commit is contained in:
ville rantanen
2013-02-22 15:05:55 +02:00
parent b039f42c96
commit 04111dfbb7
2 changed files with 3 additions and 3 deletions

View File

@@ -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)

View File

@@ -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;