diff options
-rw-r--r-- | phpfspot.js | 5 |
1 files changed, 4 insertions, 1 deletions
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; |