mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
loader.js: Directly set the window's title for full layout requests
refs #3851
This commit is contained in:
parent
d52cc07d41
commit
f6d40a9d1c
@ -543,7 +543,9 @@
|
||||
}
|
||||
|
||||
var title = req.getResponseHeader('X-Icinga-Title');
|
||||
if (title && ! req.autorefresh && req.$target.closest('.dashboard').length === 0) {
|
||||
if (title && target === 'layout') {
|
||||
this.icinga.ui.setTitle(decodeURIComponent(title));
|
||||
} else if (title && ! req.autorefresh && req.$target.closest('.dashboard').length === 0) {
|
||||
req.$target.data('icingaTitle', decodeURIComponent(title));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user