Don't remove newlines on error message pages.

Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
Michael Price
2018-03-10 14:08:58 -04:00
committed by Roberto Rosario
parent 61cb9ac524
commit ad3438b859

View File

@@ -127,11 +127,12 @@ PartialNavigation.prototype.processAjaxRequestError = function (jqXHR) {
* Method to process an AJAX request and make it presentable to the
* user.
*/
if (jqXHR.status == 0) {
$('#modal-server-error .modal-body').html($('#template-error').html());
$('#modal-server-error').modal('show')
} else {
$('#ajax-content').html(jqXHR.responseText.replace(/\n/g, "<br />"));
$('#ajax-content').html(jqXHR.responseText);
}
}