mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-05 15:05:58 +01:00
Fixed problem that form was not submitted if it was submitted via an button without message.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user