diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2008-01-19 10:23:34 +0100 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2008-01-19 10:23:34 +0100 |
commit | 85766025176dcca95a4ccf292dc85d5f12ced8ab (patch) | |
tree | 16046457191ed0319364f2a87b141fb3ad38b8e8 | |
parent | addc988921081fcc4571be3cc7cd2375e621fee4 (diff) |
issue102, when scrolling up to display photo-view, blank the screen while it's getting loaded
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
-rw-r--r-- | phpfspot.js | 9 |
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) { |