From 3dcd1e2a3ca576db1b0093d54fbb9330cc7e5e25 Mon Sep 17 00:00:00 2001 From: BoHung Chiu Date: Thu, 28 Sep 2023 22:49:33 +0800 Subject: [PATCH] Fix bug. --- app/assets/javascripts/theater.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/theater.js b/app/assets/javascripts/theater.js index 39dfbf3..2bf590e 100644 --- a/app/assets/javascripts/theater.js +++ b/app/assets/javascripts/theater.js @@ -120,7 +120,9 @@ window.GalleryTheater = function() { // handler to show theater $("div[data-list=images] a").filter(":not(.preview)").off('click').on("click", function() { - createTheater($(this).attr("href")); + var id = link.split("#")[1]; + createTheater("/xhr/galleries/theater/" + id); + window.location.hash = '#' + id; return false; })