From f6d40a9d1c192a67600e3745b3a87d56f01f1ff5 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 11 Jul 2019 15:45:19 +0200 Subject: [PATCH] loader.js: Directly set the window's title for full layout requests refs #3851 --- public/js/icinga/loader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 6592dac72..4b503ed8c 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -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)); }