summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.class.php2
-rw-r--r--themes/default/templates/single_photo.tpl2
2 files changed, 3 insertions, 1 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()
/**
diff --git a/themes/default/templates/single_photo.tpl b/themes/default/templates/single_photo.tpl
index 4bc61d1..19329cc 100644
--- a/themes/default/templates/single_photo.tpl
+++ b/themes/default/templates/single_photo.tpl
@@ -66,7 +66,7 @@
{ if $next_url == "" }
<a href="javascript:showPhotoIndex();" onclick="click(this);">
{ else }
- <a href="{$next_url}" onclick="click(this);" title="click for the next photo">
+ <a href="{$next_url}" onclick="click(this);" title="click for the next photo" name="image">
{ /if }
<img src="{$image_url}" width="{$width}" height="{$height}" alt="{$image_filename}" />
</a>