From 5333bbf04d06543249d5970897853c4161905082 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 2 Aug 2019 15:42:58 +0200 Subject: [PATCH] loader.js: Also set title directly if layout is base target --- public/js/icinga/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index d8cd09425..e8aa6a126 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -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));