summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpfspot.js b/phpfspot.js
index e24d0aa..74ad4b9 100644
--- a/phpfspot.js
+++ b/phpfspot.js
@@ -1,6 +1,13 @@
function showImage(id, scrollup)
{
- HTML_AJAX.replace(document.getElementById("content"), encodeURI('rpc.php?action=showphoto&id=' + id));
+ content = document.getElementById("content");
+
+ /* blank the screen */
+ if(scrollup != undefined) {
+ content.innerHTML = "";
+ }
+
+ HTML_AJAX.replace(content, encodeURI('rpc.php?action=showphoto&id=' + id));
/* scroll the window up to the top */
if(scrollup != undefined) {