From d4d1e65a6dd8b9640579b6080ba8e1ba264b8484 Mon Sep 17 00:00:00 2001 From: BoHung Chiu Date: Thu, 28 Sep 2023 22:52:11 +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..343bff2 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 = $(this).attr('href').split("#")[1]; + createTheater("/xhr/galleries/theater/" + id); + window.location.hash = '#' + id; return false; })