Skip to content

Commit

Permalink
prevent ajax submission
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Nov 14, 2024
1 parent 358b069 commit 70f6ecd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions javascript/cms-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
if (this.hasClass("confirm")) {
var confirmed = confirm($(this).data("message"));
if (!confirmed) {
// Prevent submission
e.preventDefault();
return;
}
}
Expand Down

0 comments on commit 70f6ecd

Please sign in to comment.