mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
loader.js: Also match newlines when interpreting multipart content
This commit is contained in:
parent
e68e8c8e9c
commit
70c3023f3c
@ -763,7 +763,7 @@
|
|||||||
var contentSeparator = req.getResponseHeader('X-Icinga-Multipart-Content');
|
var contentSeparator = req.getResponseHeader('X-Icinga-Multipart-Content');
|
||||||
if (!! contentSeparator) {
|
if (!! contentSeparator) {
|
||||||
$.each(req.responseText.split(contentSeparator), function (idx, el) {
|
$.each(req.responseText.split(contentSeparator), function (idx, el) {
|
||||||
var match = el.match(/for=(\S+)\s+(.*)/m);
|
var match = el.match(/for=(\S+)\s+(.*)/ms);
|
||||||
if (!! match) {
|
if (!! match) {
|
||||||
var $target = $('#' + match[1]);
|
var $target = $('#' + match[1]);
|
||||||
if ($target.length) {
|
if ($target.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user