Fix tag suggestions.
This commit is contained in:
parent
6a7defcdc9
commit
17859b70e9
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user