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; })