forked from forks/microblog.pub
9 lines
359 B
JavaScript
9 lines
359 B
JavaScript
document.addEventListener('DOMContentLoaded', (ev) => {
|
|
// Add confirm to "delete" button next to outbox objects
|
|
var forms = document.getElementsByClassName("object-delete-form")
|
|
for (var i = 0; i < forms.length; i++) {
|
|
forms[i].addEventListener('submit', (ev) => {
|
|
return confirm('Do you really want to delete this object?');
|
|
});
|
|
}
|
|
});
|