From: Andreas Unterkircher Date: Tue, 15 Jan 2008 18:39:37 +0000 (+0100) Subject: use HTML_AJAXs replace function to alter content of content-div X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=9e0069f45399b5436200c158c8fdbda3da1ffe5a use HTML_AJAXs replace function to alter content of content-div Signed-off-by: Andreas Unterkircher --- 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 "\n"; + print "\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 @@
{ if $next_url == "" } - + { else } - + { /if } {$image_filename}