Fix for setTimeout.
This commit is contained in:
parent
e167b2d7b9
commit
d024eba878
@ -240,7 +240,7 @@ function hideHoverView() {
|
|||||||
function showHoverView() {
|
function showHoverView() {
|
||||||
if (hideHoverV !== null) { clearTimeout(hideHoverV); }
|
if (hideHoverV !== null) { clearTimeout(hideHoverV); }
|
||||||
$('#hoverView').show();
|
$('#hoverView').show();
|
||||||
hideHoverV = setTimeout(hideHoverView(), 3000);
|
hideHoverV = setTimeout("hideHoverView()", 3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function focusImage(id, redirected) {
|
function focusImage(id, redirected) {
|
||||||
@ -250,7 +250,7 @@ function focusImage(id, redirected) {
|
|||||||
$('#pause_detail').hide();
|
$('#pause_detail').hide();
|
||||||
swatchImg(id);
|
swatchImg(id);
|
||||||
$('#detailView').fadeIn('slow');
|
$('#detailView').fadeIn('slow');
|
||||||
hideHoverV = setTimeout(hideHoverView(), 3000);
|
hideHoverV = setTimeout("hideHoverView()", 3000);
|
||||||
detailViewMode = true;
|
detailViewMode = true;
|
||||||
updateHash();
|
updateHash();
|
||||||
//Image count.
|
//Image count.
|
||||||
@ -323,7 +323,7 @@ function startSlideshow() {
|
|||||||
$('#play_detail').hide();
|
$('#play_detail').hide();
|
||||||
$('#pause_detail').show();
|
$('#pause_detail').show();
|
||||||
$('#detailView').fadeIn('slow');
|
$('#detailView').fadeIn('slow');
|
||||||
hideHoverV = setTimeout(hideHoverView(), 3000);
|
hideHoverV = setTimeout("hideHoverView()", 3000);
|
||||||
slideShowId = currentImg;
|
slideShowId = currentImg;
|
||||||
slideShowId = 0;
|
slideShowId = 0;
|
||||||
togglePlayPause();
|
togglePlayPause();
|
||||||
@ -334,7 +334,7 @@ function slideShowUpdate(id) {
|
|||||||
id = 0;
|
id = 0;
|
||||||
}
|
}
|
||||||
swatchImg(id);
|
swatchImg(id);
|
||||||
slideShow = setTimeout(slideShowUpdate(id + 1), 1000);
|
slideShow = setTimeout("slideShowUpdate(" + id + 1 + ")", 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function switchMode(mode) {
|
function switchMode(mode) {
|
||||||
|
Reference in New Issue
Block a user