From: Steinar H. Gunderson Date: Fri, 25 Jul 2008 11:25:50 +0000 (+0200) Subject: More window.location.hash usage/fixups. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=45a498bb6c353ee9e522ea3b4831e4ba78335ecc More window.location.hash usage/fixups. --- diff --git a/files/pr0n-fullscreen.js b/files/pr0n-fullscreen.js index 3cc6055..1ad74af 100644 --- a/files/pr0n-fullscreen.js +++ b/files/pr0n-fullscreen.js @@ -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;