vendor/assets/javascripts/jquery.iframe-transport.js in remotipart-1.4.2 vs vendor/assets/javascripts/jquery.iframe-transport.js in remotipart-1.4.3

- old
+ new

@@ -208,15 +208,17 @@ textarea = root.getElementsByTagName("textarea")[0], type = textarea && textarea.getAttribute("data-type") || null, status = textarea && textarea.getAttribute("data-status") || 200, statusText = textarea && textarea.getAttribute("data-statusText") || "OK", content = { - html: root.innerHTML, text: type ? textarea.value : root ? (root.textContent || root.innerText) : null }; cleanUp(); + if (!jqXHR.responseText) { + jqXHR.responseText = content.text; + } completeCallback(status, statusText, content, type ? ("Content-Type: " + type) : null); });