loader.js: Also set title directly if layout is base target

This commit is contained in:
Johannes Meyer 2019-08-02 15:42:58 +02:00
parent 861c5601b6
commit 5333bbf04d
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@
}
var title = req.getResponseHeader('X-Icinga-Title');
if (title && target === 'layout') {
if (title && (target === 'layout' || req.$target.is('#layout'))) {
this.icinga.ui.setTitle(decodeURIComponent(title));
} else if (title && ! req.autorefresh && req.$target.closest('.dashboard').length === 0) {
req.$target.data('icingaTitle', decodeURIComponent(title));