diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index a05c7c473..0008c782d 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -287,6 +287,11 @@ ); this.processNotificationHeader(req); + var cssreload = req.getResponseHeader('X-Icinga-Reload-Css'); + if (cssreload) { + this.icinga.ui.reloadCss(); + } + var redirect = req.getResponseHeader('X-Icinga-Redirect'); if (this.processRedirectHeader(req)) return; @@ -368,11 +373,6 @@ } req.$target.attr('class', classes.join(' ')); - var cssreload = req.getResponseHeader('X-Icinga-CssReload'); - if (cssreload) { - this.icinga.ui.reloadCss(); - } - var title = req.getResponseHeader('X-Icinga-Title'); if (title && ! req.autorefresh && req.$target.closest('.dashboard').length === 0) { this.icinga.ui.setTitle(decodeURIComponent(title));