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"); var tagRemovalTargets = document.getElementsByClassName("delete-tag");
Array.forEach(tagRemovalTargets, function(el) { for (var i = 0; i < tagRemovalTargets.length; i++) {
el.addEventListener("click", removeTag); tagRemovalTargets[i].addEventListener("click", removeTag);
}); }
var tag_autosuggest = new TagAutoSuggest({ var tag_autosuggest = new TagAutoSuggest({
inputElement: "new_tag", inputElement: "new_tag",