update step picture title upon thumb selection

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK
2021-01-30 17:49:50 +01:00
parent 5c32094ffc
commit 3c7d6683b8
2 changed files with 15 additions and 14 deletions

View File

@@ -132,6 +132,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"));
$(this).closest(".step").find(".boxedThumb").attr("title", $(this).attr("alt"));
/* Activate the corresponding thumbnail and deactivate all others */
$(this).addClass("active")