Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
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) {