diff --git a/app/assets/javascripts/theater.js b/app/assets/javascripts/theater.js index 62b0bcc..b045f9f 100644 --- a/app/assets/javascripts/theater.js +++ b/app/assets/javascripts/theater.js @@ -106,7 +106,7 @@ window.GalleryTheater = function(){ gt.closeBtn.off('click').on("click",gt.destroyTheater); // handler to show theater - $("div[data-list=images] a").off('click').on("click",function(){ + $("div[data-list=images] a").filter(":not(.preview)").off('click').on("click",function(){ gt.createTheater($(this).attr("href")); return false; }) diff --git a/app/views/galleries/show.html.erb b/app/views/galleries/show.html.erb index 9e22909..bd3ff5a 100644 --- a/app/views/galleries/show.html.erb +++ b/app/views/galleries/show.html.erb @@ -57,7 +57,7 @@ - + diff --git a/modules/gallery/_gallery_widget4.html.erb b/modules/gallery/_gallery_widget4.html.erb index 67da31d..2b56d73 100644 --- a/modules/gallery/_gallery_widget4.html.erb +++ b/modules/gallery/_gallery_widget4.html.erb @@ -27,7 +27,7 @@ - + diff --git a/modules/gallery/info.json b/modules/gallery/info.json index fbf4ac8..528b368 100644 --- a/modules/gallery/info.json +++ b/modules/gallery/info.json @@ -68,6 +68,7 @@ }, { "filename" : "gallery_widget4", + "force_cover": "true", "name" : { "zh_tw" : "4. 卡片", "en" : "4. Card"