diff --git a/templates/photo.html b/templates/photo.html index 74107aa..33bd0a2 100644 --- a/templates/photo.html +++ b/templates/photo.html @@ -320,10 +320,6 @@ function disable_hoverzoom() div.style.backgroundImage = "none"; div.onmousemove = null; div.onclick = null; - if (getComputedStyle(content_body).flexDirection != "column-reverse") - { - add_tag_box.focus(); - } } function toggle_hoverzoom() { @@ -336,6 +332,10 @@ function toggle_hoverzoom() { enable_hoverzoom(); } + if (getComputedStyle(content_body).flexDirection != "column-reverse") + { + add_tag_box.focus(); + } } photo_img_holder = document.getElementById("photo_img_holder");