From 17d990c499850797734ddb25df250aac3d94d249 Mon Sep 17 00:00:00 2001 From: BoHung Chiu Date: Thu, 28 Sep 2023 22:47:54 +0800 Subject: [PATCH] Fix bug. --- app/assets/javascripts/theater.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/theater.js b/app/assets/javascripts/theater.js index 39dfbf3..64872ac 100644 --- a/app/assets/javascripts/theater.js +++ b/app/assets/javascripts/theater.js @@ -120,7 +120,8 @@ 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); return false; })