mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Fixed problem that form was not submitted if it was submitted via an button without message.
This commit is contained in:
parent
b4958cbaf8
commit
714e54853a
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue