new version, slide timer as float
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user