diff --git a/core/misc/ajax.js b/core/misc/ajax.js index 061b594..6a8b16d 100644 --- a/core/misc/ajax.js +++ b/core/misc/ajax.js @@ -1027,7 +1027,7 @@ // $(response.data) as new HTML rather than a CSS selector. Also, if // response.data contains top-level text nodes, they get lost with either // $(response.data) or $('
').replaceWith(response.data). - var $new_content_wrapped = $('
').html(response.data); + var $new_content_wrapped = $('
').html(response.data.trim()); var $new_content = $new_content_wrapped.contents(); // For legacy reasons, the effects processing code assumes that