Fixed problem that form was not submitted if it was submitted via an button without message.

This commit is contained in:
Jan Böhmer 2019-12-29 20:18:48 +01:00
parent b4958cbaf8
commit 714e54853a

View file

@ -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.