make the lightbox use the selected thumbnail

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK 2021-01-29 23:07:09 +01:00
parent 78f2851260
commit 2ee7d24cd9

View File

@ -131,6 +131,7 @@ $(".step-thumb").on("mouseover", function() {
/* Set picture image source to the thumbnail image source */ /* Set picture image source to the thumbnail image source */
$(this).closest(".step").find(".step-picture").attr("src", $(this).attr("src")); $(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 */ /* Activate the corresponding thumbnail and deactivate all others */
$(this).addClass("active") $(this).addClass("active")