From c1c14895705c264bfc1f12ea5d4afd1540543a5a Mon Sep 17 00:00:00 2001 From: Bohung Date: Wed, 6 Apr 2022 15:15:12 +0800 Subject: [PATCH] Fix card template. --- app/assets/javascripts/theater.js | 2 +- app/views/galleries/show.html.erb | 2 +- modules/gallery/_gallery_widget4.html.erb | 2 +- modules/gallery/info.json | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) 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"