mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-07 14:04:27 +02:00
modal.js: Submit form only once
This commit is contained in:
parent
869b63c263
commit
414a2ff7aa
@ -90,6 +90,8 @@
|
||||
var _this = event.data.self;
|
||||
var $form = $(event.currentTarget).closest('form');
|
||||
var $modal = $form.closest('#modal');
|
||||
// otherwise the form is submitted several times by clicking the "Submit" button several times
|
||||
$form.find('input:not(:disabled)').prop('disabled', true);
|
||||
|
||||
var req = _this.icinga.loader.submitForm($form, $autoSubmittedBy);
|
||||
req.addToHistory = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user