Don't remove newlines on error message pages.
Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
61cb9ac524
commit
ad3438b859
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user