fix admin.js
This commit is contained in:
parent
058fe94fd1
commit
befc8e8e75
|
@ -333,6 +333,7 @@ const flash = ({ type, msg }) => {
|
||||||
document.querySelector("a#a_toggle").addEventListener("click", toggleEvent);
|
document.querySelector("a#a_toggle").addEventListener("click", toggleEvent);
|
||||||
[...document.querySelectorAll("#tags > .badge > a:first-child")].map(t => t.addEventListener("click", editTagEvent));
|
[...document.querySelectorAll("#tags > .badge > a:first-child")].map(t => t.addEventListener("click", editTagEvent));
|
||||||
[...document.querySelectorAll("#tags > .badge > a:last-child")].map(t => t.addEventListener("click", deleteEvent));
|
[...document.querySelectorAll("#tags > .badge > a:last-child")].map(t => t.addEventListener("click", deleteEvent));
|
||||||
|
if(document.querySelector("svg#a_delete"))
|
||||||
document.querySelector("svg#a_delete").addEventListener("click", deleteButtonEvent);
|
document.querySelector("svg#a_delete").addEventListener("click", deleteButtonEvent);
|
||||||
document.querySelector("svg#a_favo").addEventListener("click", toggleFavEvent);
|
document.querySelector("svg#a_favo").addEventListener("click", toggleFavEvent);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user