Fix tag suggestions.

This commit is contained in:
Aaron van Geffen 2020-02-22 17:40:34 +01:00 committed by Gitea
parent 6a7defcdc9
commit 17859b70e9

View File

@ -189,9 +189,9 @@ class PhotoPage extends SubTemplate
};
var tagRemovalTargets = document.getElementsByClassName("delete-tag");
Array.forEach(tagRemovalTargets, function(el) {
el.addEventListener("click", removeTag);
});
for (var i = 0; i < tagRemovalTargets.length; i++) {
tagRemovalTargets[i].addEventListener("click", removeTag);
}
var tag_autosuggest = new TagAutoSuggest({
inputElement: "new_tag",