From b4fe91bb2f95678352324ecc6e3226021e96359d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 6 Jul 2015 16:43:49 +0200 Subject: [PATCH] Revert "Ajax onFailure: Write component URL to container" This reverts commit ae68e8aec42703c988ca2d5f2620e8a23ac4e4b1. fixes #9042 fixes #9544 --- public/js/icinga/loader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 5b345a308..ad6f2d5e0 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -453,6 +453,8 @@ var $el = $(el); if ($el.hasClass('dashboard')) { return; + } else { + } var url = $el.data('icingaUrl'); targets[i].data('icingaUrl', url); @@ -559,7 +561,7 @@ } else { // Request wasn't for a container, so it's usually the body // or the full layout. Push request URL to history: - this.icinga.history.pushCurrentState(); + this.icinga.history.pushUrl(req.url); } } @@ -589,8 +591,6 @@ req.failure = true; - req.$target.data('icingaUrl', req.url); - /* * Test if a manual actions comes in and autorefresh is active: Stop refreshing */