Oops, apply listeners to /photo input box as well.

This commit is contained in:
voussoir 2018-02-24 01:08:21 -08:00
parent e359180467
commit 79b20369db

View file

@ -251,7 +251,8 @@ var content_body = document.getElementById('content_body');
var add_tag_box = document.getElementById('add_tag_textbox'); var add_tag_box = document.getElementById('add_tag_textbox');
var add_tag_button = document.getElementById('add_tag_button'); var add_tag_button = document.getElementById('add_tag_button');
var message_area = document.getElementById('message_area'); var message_area = document.getElementById('message_area');
add_tag_box.onkeydown = function(){entry_with_history_hook(add_tag_box, add_tag_button)}; add_tag_box.addEventListener("keyup", entry_with_history_hook);
bind_box_to_button(add_tag_box, add_tag_button, false);
photo_img_holder = document.getElementById("photo_img_holder"); photo_img_holder = document.getElementById("photo_img_holder");
photo_img = document.getElementById("photo_img"); photo_img = document.getElementById("photo_img");