JS/XHR: last commit was missing the JS part

This commit is contained in:
Thomas Gelf 2014-06-20 13:22:53 +02:00
parent 07134cf931
commit 28c61c2595
1 changed files with 6 additions and 2 deletions

View File

@ -222,9 +222,13 @@
processNotificationHeader: function(req) { processNotificationHeader: function(req) {
var header = req.getResponseHeader('X-Icinga-Notification'); var header = req.getResponseHeader('X-Icinga-Notification');
var self = this;
if (! header) return false; if (! header) return false;
var parts = decodeURIComponent(header).split(' '); var list = header.split('&');
this.createNotice(parts.shift(), parts.join(' ')); $.each(list, function(idx, el) {
var parts = decodeURIComponent(el).split(' ');
self.createNotice(parts.shift(), parts.join(' '));
});
return true; return true;
}, },