diff options
-rw-r--r-- | phpfspot.class.php | 2 | ||||
-rw-r--r-- | phpfspot.js | 3 | ||||
-rw-r--r-- | themes/default/templates/single_photo.tpl | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index 85d276e..467fdb2 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -520,7 +520,7 @@ class PHPFSPOT { $this->tmpl->show("single_photo.tpl"); - print "<script language=\"JavaScript\">self.location.hash = '#image';</script>\n"; + print "<script language=\"JavaScript\">self.location.hash = '#photo';</script>\n"; } // showPhoto() diff --git a/phpfspot.js b/phpfspot.js index ca3f9c0..2079b80 100644 --- a/phpfspot.js +++ b/phpfspot.js @@ -1,7 +1,6 @@ function showImage(id) { - var image_div = document.getElementById("content"); - image_div.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=showphoto&id=' + id)); + HTML_AJAX.replace(document.getElementById("content"), encodeURI('rpc.php?action=showphoto&id=' + id)); } function showCredits() diff --git a/themes/default/templates/single_photo.tpl b/themes/default/templates/single_photo.tpl index 19329cc..2032f52 100644 --- a/themes/default/templates/single_photo.tpl +++ b/themes/default/templates/single_photo.tpl @@ -64,9 +64,9 @@ <div style="text-align: left; margin-top: 20px; margin-left: 20px;"> { if $next_url == "" } - <a href="javascript:showPhotoIndex();" onclick="click(this);"> + <a href="javascript:showPhotoIndex();" onclick="click(this);" name="photo"> { else } - <a href="{$next_url}" onclick="click(this);" title="click for the next photo" name="image"> + <a href="{$next_url}" onclick="click(this);" title="click for the next photo" name="photo"> { /if } <img src="{$image_url}" width="{$width}" height="{$height}" alt="{$image_filename}" /> </a> |