mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix not being able to remove packages added by query field
This commit is contained in:
parent
cea315048b
commit
618a768f9a
@ -84,9 +84,12 @@ function addPackage(pkg) {
|
||||
</article>
|
||||
`;
|
||||
|
||||
const newElement = temp.children[0];
|
||||
document.getElementById("package_list").appendChild(newElement);
|
||||
newElement.scrollIntoView();
|
||||
const card = temp.children[0];
|
||||
document.getElementById("package_list").appendChild(card);
|
||||
card.scrollIntoView();
|
||||
|
||||
const button = card.querySelector(".btn-danger");
|
||||
button.addEventListener("click", () => removePackage(card));
|
||||
}
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scriptextra %}
|
||||
<script src="/static/collection_editor.js?v=2"></script>
|
||||
<script src="/static/collection_editor.js?v=3"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
Loading…
Reference in New Issue
Block a user