From 0715a088e0e83176f19283c441fc163ebcd07c54 Mon Sep 17 00:00:00 2001 From: recursivetree <60423027+recursivetree@users.noreply.github.com> Date: Thu, 9 Jan 2025 02:18:44 +0100 Subject: [PATCH] fix: trigger normal form events when using .confirm[delete][form] (#690) --- src/resources/js/seat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/js/seat.js b/src/resources/js/seat.js index 37b3218ac..5de16cad7 100644 --- a/src/resources/js/seat.js +++ b/src/resources/js/seat.js @@ -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 } }); }); @@ -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 } }); });