From 959967c646a9ff3d694b916d691f9ff048e7540d Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sat, 8 Mar 2014 23:58:19 +0100 Subject: [PATCH] Fix logout button "sometimes not working" and similar --- public/js/icinga/loader.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 963a0b968..c186f9655 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -277,6 +277,10 @@ if (target === 'ignore') { return; } + // If we change the target, oncomplete will fail to clean up + // This fixes the problem, not using req.$target would be better + delete this.requests[req.$target.attr('id')]; + req.$target = $('#' + target); newBody = true; }