parent
67e41af308
commit
e030229d7f
|
@ -480,6 +480,7 @@
|
|||
newBody = true;
|
||||
}
|
||||
|
||||
if (target !== 'layout') {
|
||||
var moduleName = req.getResponseHeader('X-Icinga-Module');
|
||||
classes = $.grep(req.$target.classes(), function (el) {
|
||||
if (el === 'icinga-module' || el.match(/^module\-/)) {
|
||||
|
@ -499,11 +500,6 @@
|
|||
}
|
||||
req.$target.attr('class', classes.join(' '));
|
||||
|
||||
var title = req.getResponseHeader('X-Icinga-Title');
|
||||
if (title && ! req.autorefresh && req.$target.closest('.dashboard').length === 0) {
|
||||
this.icinga.ui.setTitle(decodeURIComponent(title));
|
||||
}
|
||||
|
||||
var refresh = req.autoRefreshInterval || req.getResponseHeader('X-Icinga-Refresh');
|
||||
if (refresh) {
|
||||
req.$target.data('icingaRefresh', refresh);
|
||||
|
@ -513,6 +509,12 @@
|
|||
req.$target.removeAttr('data-icinga-refresh');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var title = req.getResponseHeader('X-Icinga-Title');
|
||||
if (title && ! req.autorefresh && req.$target.closest('.dashboard').length === 0) {
|
||||
this.icinga.ui.setTitle(decodeURIComponent(title));
|
||||
}
|
||||
|
||||
// Set a window identifier if the server asks us to do so
|
||||
var windowId = req.getResponseHeader('X-Icinga-WindowId');
|
||||
|
|
Loading…
Reference in New Issue