From 4b243ea6dcf859c392ec52aad66a580c99fe2bb0 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Wed, 4 Jul 2007 18:32:50 +0000 Subject: [PATCH 1/1] set a startup variable. unset it with the first call of the photo index page git-svn-id: file:///var/lib/svn/phpfspot/trunk@159 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpfspot.js b/phpfspot.js index bde4c6a..2d7e780 100644 --- a/phpfspot.js +++ b/phpfspot.js @@ -67,8 +67,9 @@ function showBubbleDetails(object, id, direction) // if photo index is currently shown, refresh it function refreshPhotoIndex() { - if(document.getElementById("matrix") != undefined) { + if(document.getElementById("matrix") != undefined || startup == 1) { showPhotoIndex(); + startup = 0; } } @@ -111,3 +112,5 @@ function clearSearch() { document.getElementsByName('searchfor')[0].value = ''; } + +var startup = 1; -- 2.25.1