From 8212c51f8d1909a532d53838328850b77df57435 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 7 Nov 2018 09:01:29 +0100 Subject: [PATCH] js: Already set `window.name` prior bootstrapping our js runtime Makes sure that the Window-Id already generated and utilized by the server on the first request is used by subsequent requests instead of a new one. Also avoids that concurrent running id-less requests compete about which one may set his assigned id. Now any subsequent request already transmits the id assigned to the first one. And it resets `window.name` in case the user performs a manual refresh so that the id used by the server is set/utilized. refs #3609 --- application/layouts/scripts/layout.phtml | 1 + public/js/icinga/ui.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/application/layouts/scripts/layout.phtml b/application/layouts/scripts/layout.phtml index e64577cc2..44340da35 100644 --- a/application/layouts/scripts/layout.phtml +++ b/application/layouts/scripts/layout.phtml @@ -85,6 +85,7 @@ $innerLayoutScript = $this->layout()->innerLayout . '.phtml';