From 03f62887b87c583d711ea1c1839e2cb70603186f Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 6 Sep 2023 14:52:39 +0200 Subject: [PATCH] loader.js: Don't refresh twice upon `__CLOSE__` --- public/js/icinga/loader.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 771bf6b0e..9bf334fe3 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -601,19 +601,6 @@ refresh.addToHistory = true; refresh.scripted = true; - var _this = this; - setTimeout(function () { - // TODO: Find a better solution than a hardcoded one - // This is still the *cheat* to get live results - // (in case there's a delay and a change is not instantly effective) - var secondRefresh = _this.loadUrl(refreshUrl, $refreshTarget); - if (secondRefresh !== refresh) { - // Only change these properties if it's not still the first refresh - secondRefresh.addToHistory = false; - secondRefresh.scripted = true; - } - }, 1000); - return true; }