Skip to content

Commit

Permalink
fix: trigger normal form events when using .confirm[delete][form] (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
recursivetree authored Jan 9, 2025
1 parent ac4146f commit 0715a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resources/js/seat.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $(document).on("click", ".confirmform", function (e) {
}
bootbox.confirm(message, function (confirmed) {
if (confirmed) {
currentForm.submit();
currentForm.get(0).requestSubmit(); // requestSubmit is not supported by jquery, so access the rwa DOM element
}
});
});
Expand All @@ -47,7 +47,7 @@ $(document).on("click", ".confirmdelete", function (e) {
}
bootbox.confirm(message, function (confirmed) {
if (confirmed) {
currentForm.submit();
currentForm.get(0).requestSubmit(); // requestSubmit is not supported by jquery, so access the rwa DOM element
}
});
});
Expand Down

0 comments on commit 0715a08

Please sign in to comment.