From 0080e2633318c97d839a4dfbc7cc1c7b65f4b800 Mon Sep 17 00:00:00 2001 From: nicofrand Date: Fri, 29 Dec 2023 11:03:55 +0100 Subject: [PATCH] [themes/korrigan] Fix gallery's duplicated images --- themes/korrigan/templates/partial/korrigan.js.ep | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/themes/korrigan/templates/partial/korrigan.js.ep b/themes/korrigan/templates/partial/korrigan.js.ep index 0d3a0fb..450e6c0 100644 --- a/themes/korrigan/templates/partial/korrigan.js.ep +++ b/themes/korrigan/templates/partial/korrigan.js.ep @@ -129,3 +129,13 @@ function buildMessage(success, msg) { `; } } + +// Overwrite the function to edit the gallery selector: `.container .gallery` instead of `.gallery` as the page name is added +// to the body's classnames in this theme. +function appendToGallery(url, width, height) { + $('.container .gallery').append(`
+ + + +
`); +}