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