mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
events.js: Prevent default form submission as late as possible
This commit is contained in:
parent
2164bb86c8
commit
95bcb95cb5
@ -239,9 +239,6 @@
|
||||
$button = $('input[type=submit]', $form).add('button[type=submit]', $form).first();
|
||||
}
|
||||
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
if ($button.length) {
|
||||
// Activate spinner
|
||||
if ($button.hasClass('spinner')) {
|
||||
@ -297,6 +294,8 @@
|
||||
|
||||
icinga.loader.loadUrl(url, $target, data, method);
|
||||
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
return false;
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user