From 6fcdb2f0cd9727c41f35c7e761589bbeb01eb4b3 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 20 Apr 2017 18:38:14 -0700 Subject: [PATCH] Make add_tag_box focus whether hoverzoom toggling on or off --- templates/photo.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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");