From d024eba8787f2e4cb5f2ca96ec0699ad62fc5c1e Mon Sep 17 00:00:00 2001 From: Fredrik Erlandsson Date: Mon, 14 Nov 2011 14:03:59 +0100 Subject: [PATCH] Fix for setTimeout. --- js/pear.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/pear.js b/js/pear.js index 12f2c675..dbc54cdf 100644 --- a/js/pear.js +++ b/js/pear.js @@ -240,7 +240,7 @@ function hideHoverView() { function showHoverView() { if (hideHoverV !== null) { clearTimeout(hideHoverV); } $('#hoverView').show(); - hideHoverV = setTimeout(hideHoverView(), 3000); + hideHoverV = setTimeout("hideHoverView()", 3000); } function focusImage(id, redirected) { @@ -250,7 +250,7 @@ function focusImage(id, redirected) { $('#pause_detail').hide(); swatchImg(id); $('#detailView').fadeIn('slow'); - hideHoverV = setTimeout(hideHoverView(), 3000); + hideHoverV = setTimeout("hideHoverView()", 3000); detailViewMode = true; updateHash(); //Image count. @@ -323,7 +323,7 @@ function startSlideshow() { $('#play_detail').hide(); $('#pause_detail').show(); $('#detailView').fadeIn('slow'); - hideHoverV = setTimeout(hideHoverView(), 3000); + hideHoverV = setTimeout("hideHoverView()", 3000); slideShowId = currentImg; slideShowId = 0; togglePlayPause(); @@ -334,7 +334,7 @@ function slideShowUpdate(id) { id = 0; } swatchImg(id); - slideShow = setTimeout(slideShowUpdate(id + 1), 1000); + slideShow = setTimeout("slideShowUpdate(" + id + 1 + ")", 5000); } function switchMode(mode) {