summaryrefslogtreecommitdiffstats
path: root/phpfspot.js
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-01-20 08:49:36 +0100
committerAndreas Unterkircher <unki@netshadow.at>2008-01-20 08:49:36 +0100
commit6bab49d7bcc40cf1ca56b2ef93484a8a64f19f6c (patch)
tree4223bac568a982ce14e7ada0ae8a64f08a5bc997 /phpfspot.js
parent28fa997f064f52f6b1d420da9fb643db34508b38 (diff)
issue104, when autobrowse is active, ensure pause icon is getting displayed
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'phpfspot.js')
-rw-r--r--phpfspot.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/phpfspot.js b/phpfspot.js
index d8290ad..c4b39b5 100644
--- a/phpfspot.js
+++ b/phpfspot.js
@@ -226,7 +226,7 @@ function init_phpfspot(mode)
}
if(whattodo == 'show_photo') {
if(photo = getPhotoToShow()) {
- showImage(photo)
+ showImage(photo);
refreshSelectedTags();
}
}
@@ -469,7 +469,8 @@ function startAutoBrowse()
document.getElementById('autobrowse_ico').src = "resources/32_play.png";
}
-}
+} // startAutoBrowser()
+
function autoBrowse()
{
if(document.getElementById('next_link')) {
@@ -477,7 +478,14 @@ function autoBrowse()
window.location.href = next_link;
document.getElementById('autobrowse_ico').src = "resources/32_pause.png";
}
-}
+ /* we have reached the last photo */
+ else {
+ if(document.getElementById('autobrowse_ico'))
+ document.getElementById('autobrowse_ico').src = "resources/32_play.png";
+ clearInterval(autobrowse);
+ }
+
+} // autoBrowse()
function initSlider()
{