mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
parent
3aee13cd9b
commit
2ecf1a99a6
@ -192,7 +192,14 @@ define(['jquery', 'logging', 'icinga/componentLoader', 'URIjs/URI', 'URIjs/URITe
|
|||||||
this.hideDetail();
|
this.hideDetail();
|
||||||
}
|
}
|
||||||
cancelPendingRequest();
|
cancelPendingRequest();
|
||||||
this.containerDom.trigger('showLoadIndicator');
|
var loadingTimeout = window.setTimeout(
|
||||||
|
(function(containerDom) {
|
||||||
|
return function() {
|
||||||
|
containerDom.trigger('showLoadIndicator');
|
||||||
|
}
|
||||||
|
})(this.containerDom),
|
||||||
|
500
|
||||||
|
);
|
||||||
pendingDetailRequest = $.ajax({
|
pendingDetailRequest = $.ajax({
|
||||||
'url': url,
|
'url': url,
|
||||||
'data': {
|
'data': {
|
||||||
@ -226,6 +233,7 @@ define(['jquery', 'logging', 'icinga/componentLoader', 'URIjs/URI', 'URIjs/URITe
|
|||||||
this.replaceDom(response.responseText);
|
this.replaceDom(response.responseText);
|
||||||
})
|
})
|
||||||
.always(function () {
|
.always(function () {
|
||||||
|
window.clearTimeout(loadingTimeout);
|
||||||
this.containerDom.trigger('hideLoadIndicator');
|
this.containerDom.trigger('hideLoadIndicator');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user