From: Andreas Unterkircher Date: Wed, 4 Jul 2007 18:32:50 +0000 (+0000) Subject: set a startup variable. unset it with the first call of the photo index page X-Git-Tag: phpfspot-1.2~176 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b243ea6dcf859c392ec52aad66a580c99fe2bb0;p=phpfspot.git 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 --- 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;