From: Andreas Unterkircher Date: Sat, 19 Jan 2008 09:23:34 +0000 (+0100) Subject: issue102, when scrolling up to display photo-view, blank the screen while it's gettin... X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=85766025176dcca95a4ccf292dc85d5f12ced8ab issue102, when scrolling up to display photo-view, blank the screen while it's getting loaded Signed-off-by: Andreas Unterkircher --- 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) {