summaryrefslogtreecommitdiffstats
path: root/phpfspot.js
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-04 18:32:50 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-04 18:32:50 +0000
commit4b243ea6dcf859c392ec52aad66a580c99fe2bb0 (patch)
tree90d6c9dfcd88b0848d203d40f4ff6cedf00a16a7 /phpfspot.js
parent3e2811634f4bcbe703a24a7fab107a3f8d521d4c (diff)
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
Diffstat (limited to 'phpfspot.js')
-rw-r--r--phpfspot.js5
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;