mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
events.js: Trigger a real submit upon autosubmit
This commit is contained in:
parent
7da5eb0972
commit
cb6a0c120f
@ -183,7 +183,17 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
autoSubmitForm: function (event) {
|
autoSubmitForm: function (event) {
|
||||||
return event.data.self.submitForm(event, $(event.currentTarget));
|
let form = event.currentTarget.form;
|
||||||
|
|
||||||
|
if (form.closest('[data-no-icinga-ajax]')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
form.dispatchEvent(new CustomEvent('submit', {
|
||||||
|
cancelable: true,
|
||||||
|
bubbles: true,
|
||||||
|
detail: { submittedBy: event.currentTarget }
|
||||||
|
}));
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user