mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
Disable all form controls on submit to prevent resubmission
fixes #7151
This commit is contained in:
parent
31400ea16a
commit
1bfbce98ac
@ -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);
|
icinga.loader.loadUrl(url, $target, data, method);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user