diff --git a/common/js/xml_handler.js b/common/js/xml_handler.js index 8ea72da58..b9c8df76d 100644 --- a/common/js/xml_handler.js +++ b/common/js/xml_handler.js @@ -115,9 +115,23 @@ // Define the error handler. var errorHandler = function(xhr, textStatus) { + + // If the server has returned XML anyway, convert to JSON and call the success handler. + if (textStatus === 'parsererror' && xhr.responseText && xhr.responseText.match(/