From 714e54853a06df13d9bcec5950e81dea41391e8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 29 Dec 2019 20:18:48 +0100 Subject: [PATCH] Fixed problem that form was not submitted if it was submitted via an button without message. --- assets/ts_src/event_listeners.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/ts_src/event_listeners.ts b/assets/ts_src/event_listeners.ts index 9b202ec7..7305d168 100644 --- a/assets/ts_src/event_listeners.ts +++ b/assets/ts_src/event_listeners.ts @@ -218,6 +218,11 @@ $(document).on("ajaxUI:start ajaxUI:reload", function() { let title = $(btn).data("title"); let message = $(btn).data("message"); + //If not the button with the message was pressed, then simply submit the form. + if(!btn.hasAttribute('data-delete-btn')) { + ajaxUI.submitForm(form, btn); + } + bootbox.confirm({ message: message, title: title, callback: function (result) { //If the dialog was confirmed, then submit the form.