From 28c61c2595a2a17b48e8034016e7110cd5193d6a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 20 Jun 2014 13:22:53 +0200 Subject: [PATCH] JS/XHR: last commit was missing the JS part --- public/js/icinga/loader.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 96e7b5a92..03727f617 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -222,9 +222,13 @@ processNotificationHeader: function(req) { var header = req.getResponseHeader('X-Icinga-Notification'); + var self = this; if (! header) return false; - var parts = decodeURIComponent(header).split(' '); - this.createNotice(parts.shift(), parts.join(' ')); + var list = header.split('&'); + $.each(list, function(idx, el) { + var parts = decodeURIComponent(el).split(' '); + self.createNotice(parts.shift(), parts.join(' ')); + }); return true; },