enable image to switch between full and both, since before it got stuck with a click without alternating.

This commit is contained in:
Tina_Azure 2022-10-04 21:45:59 +02:00
parent de3b090740
commit dca146ac7e
1 changed files with 7 additions and 4 deletions

View File

@ -37,10 +37,13 @@ document.addEventListener('DOMContentLoaded', () => {
}); });
}); });
$("img.shm-main-image").click(function(e) { $("img.shm-main-image").click(function(e)
switch(Cookies.get("ui-image-zoom")) { {
case "full": zoom("width"); break; switch(Cookies.get("ui-image-zoom"))
default: zoom("full"); break; {
case "full": zoom("both"); break;
case "both": zoom("full"); break;
default: zoom("both"); break;
} }
}); });