From 85766025176dcca95a4ccf292dc85d5f12ced8ab Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 19 Jan 2008 10:23:34 +0100 Subject: [PATCH] issue102, when scrolling up to display photo-view, blank the screen while it's getting loaded Signed-off-by: Andreas Unterkircher --- phpfspot.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) { -- 2.25.1