mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
loader.js
: Allow to override the actual form action using formaction
attr
This commit is contained in:
parent
d311005089
commit
4ccebb78b5
@ -89,6 +89,11 @@
|
|||||||
$target = this.getLinkTargetFor($form);
|
$target = this.getLinkTargetFor($form);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Overwrite the URL only if the form is not auto submitted
|
||||||
|
if (! $autoSubmittedBy && $button.hasAttr('formaction')) {
|
||||||
|
url = $button.attr('formaction');
|
||||||
|
}
|
||||||
|
|
||||||
if (! url) {
|
if (! url) {
|
||||||
// Use the URL of the target container if the form's action is not set
|
// Use the URL of the target container if the form's action is not set
|
||||||
url = $target.closest('.container').data('icinga-url');
|
url = $target.closest('.container').data('icinga-url');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user