More window.location.hash usage/fixups.
authorSteinar H. Gunderson <sesse@debian.org>
Fri, 25 Jul 2008 11:25:50 +0000 (13:25 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Fri, 25 Jul 2008 11:25:50 +0000 (13:25 +0200)
files/pr0n-fullscreen.js

index 3cc60558271cebbeb7a0ff89a43cc16a64675575..1ad74af8526904059c8f778797d7a31c9c9d84db 100644 (file)
@@ -176,8 +176,7 @@ function display_image_num(num, element_id)
                center_image(num);
                
                // replace the anchor part (if any) with the image number
-               var baseurl = (window.location.toString().split("#"))[0];
-               window.location = baseurl + "#" + (num+1);
+               window.location.hash = "#" + (num+1);
        }
 
        return img;