Add some comment headers, change some whitespace.

master
voussoir 2021-04-18 18:50:51 -07:00
parent 0c085f09b9
commit ef2a1574ca
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 17 additions and 8 deletions

View File

@ -100,8 +100,7 @@ h2, h3
specific_tag, specific_tag,
link="search", link="search",
id="name_text", id="name_text",
)}} )}}</h2>
</h2>
<pre <pre
id="description_text" id="description_text"
@ -121,7 +120,7 @@ h2, h3
> >
Delete Delete
</button> </button>
</div> </div> <!-- hierarchy_self -->
{% set parents = specific_tag.get_parents() %} {% set parents = specific_tag.get_parents() %}
{% if parents %} {% if parents %}
@ -136,7 +135,7 @@ h2, h3
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div> <!-- hierarchy_parents -->
{% endif %} <!-- if parents --> {% endif %} <!-- if parents -->
{% endif %} <!-- if specific tag --> {% endif %} <!-- if specific tag -->
@ -245,7 +244,7 @@ h2, h3
--><button id="add_synonym_button" class="green_button" onclick="return add_synonym_form(event);">Add synonym</button> --><button id="add_synonym_button" class="green_button" onclick="return add_synonym_form(event);">Add synonym</button>
</li> </li>
</ul> </ul>
</div> </div> <!-- hierarchy_synonyms -->
{% endif %} <!-- if specific tag and include synonyms --> {% endif %} <!-- if specific tag and include synonyms -->
{% if specific_tag %} {% if specific_tag %}
@ -257,7 +256,7 @@ h2, h3
onload="return common.size_iframe_to_content(this);" onload="return common.size_iframe_to_content(this);"
> >
</iframe> </iframe>
</div> </div> <!-- hierarchy_recentphotos -->
{% endif %} <!-- if specific tag --> {% endif %} <!-- if specific tag -->
</div> </div>
</div> </div>
@ -271,8 +270,7 @@ const easybake_button = document.getElementById('easybake_button');
const message_area = document.getElementById('message_area'); const message_area = document.getElementById('message_area');
common.bind_box_to_button(easybake_input, easybake_button, false); 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")); // BUTTON HANDLERS
common.bind_box_to_button(document.getElementById("add_synonym_input"), document.getElementById("add_synonym_button"));
function add_child_form(event) 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); search_filter_box.addEventListener("keyup", search_filter_hook);
{% if specific_tag is not none %} {% 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; rename_ed_on_open = undefined;
function rename_ed_on_save(ed) function rename_ed_on_save(ed)