From 2ee7d24cd9727968c48242cd8f40db4f91f2c03c Mon Sep 17 00:00:00 2001 From: Michel-FK Date: Fri, 29 Jan 2021 23:07:09 +0100 Subject: [PATCH] make the lightbox use the selected thumbnail Signed-off-by: Michel-FK --- docs/assets/js/custom.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/assets/js/custom.js b/docs/assets/js/custom.js index e72f4a5..6df529d 100644 --- a/docs/assets/js/custom.js +++ b/docs/assets/js/custom.js @@ -131,6 +131,7 @@ $(".step-thumb").on("mouseover", function() { /* Set picture image source to the thumbnail image source */ $(this).closest(".step").find(".step-picture").attr("src", $(this).attr("src")); + $(this).closest(".step").find(".boxedThumb").attr("href", $(this).attr("src")); /* Activate the corresponding thumbnail and deactivate all others */ $(this).addClass("active")