diff --git a/frontends/etiquette_flask/templates/tags.html b/frontends/etiquette_flask/templates/tags.html index d5c01ac..406f011 100644 --- a/frontends/etiquette_flask/templates/tags.html +++ b/frontends/etiquette_flask/templates/tags.html @@ -100,8 +100,7 @@ h2, h3 specific_tag, link="search", id="name_text", - )}} - + )}}
Delete - + {% set parents = specific_tag.get_parents() %} {% if parents %} @@ -136,7 +135,7 @@ h2, h3 {% endfor %} - + {% endif %} {% endif %} @@ -245,7 +244,7 @@ h2, h3 --> - + {% endif %} {% if specific_tag %} @@ -257,7 +256,7 @@ h2, h3 onload="return common.size_iframe_to_content(this);" > - + {% endif %} @@ -271,8 +270,7 @@ const easybake_button = document.getElementById('easybake_button'); const message_area = document.getElementById('message_area'); common.bind_box_to_button(easybake_input, easybake_button, false); -common.bind_box_to_button(document.getElementById("add_child_input"), document.getElementById("add_child_button")); -common.bind_box_to_button(document.getElementById("add_synonym_input"), document.getElementById("add_synonym_button")); +// BUTTON HANDLERS function add_child_form(event) { @@ -513,6 +511,17 @@ var search_filter_box = document.getElementById("search_filter"); search_filter_box.addEventListener("keyup", search_filter_hook); {% if specific_tag is not none %} +common.bind_box_to_button( + document.getElementById("add_child_input"), + document.getElementById("add_child_button") +); +common.bind_box_to_button( + document.getElementById("add_synonym_input"), + document.getElementById("add_synonym_button") +); + +// SPECIFIC TAG RENAME EDITOR ////////////////////////////////////////////////////////////////////// + rename_ed_on_open = undefined; function rename_ed_on_save(ed)