JS/XHR: last commit was missing the JS part
This commit is contained in:
parent
07134cf931
commit
28c61c2595
|
@ -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;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue