Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
$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()
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()
<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>