mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
loader: Remove gray out on complete handler
A failure did not remove the impact class which colorize the background gray.
This commit is contained in:
parent
9d6906bd64
commit
67a426580d
@ -318,11 +318,6 @@
|
|||||||
this.failureNotice = null;
|
this.failureNotice = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove 'impact' class if there was such
|
|
||||||
if (req.$target.hasClass('impact')) {
|
|
||||||
req.$target.removeClass('impact');
|
|
||||||
}
|
|
||||||
|
|
||||||
var url = req.url;
|
var url = req.url;
|
||||||
this.icinga.logger.debug(
|
this.icinga.logger.debug(
|
||||||
'Got response for ', req.$target, ', URL was ' + url
|
'Got response for ', req.$target, ', URL was ' + url
|
||||||
@ -520,6 +515,11 @@
|
|||||||
* Regardless of whether a request succeeded of failed, clean up
|
* Regardless of whether a request succeeded of failed, clean up
|
||||||
*/
|
*/
|
||||||
onComplete: function (req, textStatus) {
|
onComplete: function (req, textStatus) {
|
||||||
|
// Remove 'impact' class if there was such
|
||||||
|
if (req.$target.hasClass('impact')) {
|
||||||
|
req.$target.removeClass('impact');
|
||||||
|
}
|
||||||
|
|
||||||
if (! req.autorefresh) {
|
if (! req.autorefresh) {
|
||||||
// TODO: Hook for response/url?
|
// TODO: Hook for response/url?
|
||||||
var url = req.url;
|
var url = req.url;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user