mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-03 12:19:35 -05:00
module.js: Use always instead of complete on jqXHR objects
`complete` is deprecated since jQuery 1.8 and now removed since icingaweb2 upgraded to v3.
This commit is contained in:
parent
845b9f9ddc
commit
f579cc123f
1 changed files with 2 additions and 2 deletions
|
|
@ -125,7 +125,7 @@
|
|||
|
||||
var $container = $source.closest('.container');
|
||||
var req = icinga.loader.loadUrl(actionUrl, $container, data, 'POST');
|
||||
req.complete(function (req, textStatus) {
|
||||
req.always(function() {
|
||||
icinga.loader.loadUrl(
|
||||
$container.data('icingaUrl'), $container, undefined, undefined, undefined, true);
|
||||
});
|
||||
|
|
@ -162,7 +162,7 @@
|
|||
|
||||
var $container = $target.closest('.container');
|
||||
var req = icinga.loader.loadUrl(actionUrl, $container, data, 'POST');
|
||||
req.complete(function (req, textStatus) {
|
||||
req.always(function() {
|
||||
icinga.loader.loadUrl(
|
||||
$container.data('icingaUrl'), $container, undefined, undefined, undefined, true);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue