Make add_tag_box focus whether hoverzoom toggling on or off

This commit is contained in:
voussoir 2017-04-20 18:38:14 -07:00
parent 5d53d68cec
commit 6fcdb2f0cd

View file

@ -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");