new version, slide timer as float
This commit is contained in:
@@ -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