loader.js: Directly set the window's title for full layout requests

refs #3851
This commit is contained in:
Johannes Meyer 2019-07-11 15:45:19 +02:00
parent d52cc07d41
commit f6d40a9d1c

View File

@ -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));
}