From 45a498bb6c353ee9e522ea3b4831e4ba78335ecc Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 25 Jul 2008 13:25:50 +0200 Subject: [PATCH] More window.location.hash usage/fixups. --- files/pr0n-fullscreen.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.39.2