Skip to content

Commit

Permalink
Fix delete confirmation dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
gdarko committed Feb 17, 2024
1 parent fa7ddc8 commit 9645828
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/js/admin/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ document.addEventListener("DOMContentLoaded", function (event) {
if (confirmDialogs) {
for (var i = 0; i < confirmDialogs.length; i++) {
confirmDialogs[i].addEventListener('click', function (e) {
return confirm(DLM_MAIN.i18n.confirm_dialog);
if(!confirm(DLM_MAIN.i18n.confirm_dialog)) {
e.preventDefault();
}
})
}
}
Expand Down

0 comments on commit 9645828

Please sign in to comment.