mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-03 13:43:35 -04:00
Disable all form controls on submit to prevent resubmission
fixes #7151
This commit is contained in:
parent
31400ea16a
commit
1bfbce98ac
1 changed files with 4 additions and 0 deletions
|
|
@ -274,6 +274,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
// Disable all form controls to prevent resubmission except for our search input
|
||||
// Note that disabled form inputs will not be enabled via JavaScript again
|
||||
$form.find(':input:not(#search):not(:disabled)').prop('disabled', true);
|
||||
|
||||
icinga.loader.loadUrl(url, $target, data, method);
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue