set a startup variable. unset it with the first call of the photo index page
authorAndreas Unterkircher <unki@netshadow.at>
Wed, 4 Jul 2007 18:32:50 +0000 (18:32 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Wed, 4 Jul 2007 18:32:50 +0000 (18:32 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@159 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.js

index bde4c6aafc5540bc7fce5a410188e494513a6819..2d7e780c4cf7b4a63400d2dceb7c03a0a75191ae 100644 (file)
@@ -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;