summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-01-15 19:33:06 +0100
committerAndreas Unterkircher <unki@netshadow.at>2008-01-15 19:33:06 +0100
commitb8e94789af7969321cd895d1cef5d175074afcbb (patch)
tree38cf4df3adc9fd889e81e084dc96a51f3b6abcd1 /phpfspot.class.php
parenta65027a61ac189bc723710454401f95f1dba6b21 (diff)
auto-move browser window up when displaying single photo and the user has scrolled far down before
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index cf0a60c..85d276e 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -520,6 +520,8 @@ class PHPFSPOT {
$this->tmpl->show("single_photo.tpl");
+ print "<script language=\"JavaScript\">self.location.hash = '#image';</script>\n";
+
} // showPhoto()
/**