From 72678e31f3230b5b015896a63e01ba7424e67c80 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 3 Oct 2018 15:11:43 -0400 Subject: [PATCH] Display the correct AJAX request error property. Signed-off-by: Roberto Rosario --- .../appearance/static/appearance/js/partial_navigation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/appearance/static/appearance/js/partial_navigation.js b/mayan/apps/appearance/static/appearance/js/partial_navigation.js index 55e55811c9..422d000f0c 100644 --- a/mayan/apps/appearance/static/appearance/js/partial_navigation.js +++ b/mayan/apps/appearance/static/appearance/js/partial_navigation.js @@ -160,13 +160,13 @@ class PartialNavigation { */ if (djangoDEBUG) { - $('#ajax-content').html('
' + jqXHR.responseText + '
'); + $('#ajax-content').html('
' + jqXHR.statusText + '
'); } else { if (jqXHR.status == 0) { $('#modal-server-error .modal-body').html($('#template-error').html()); $('#modal-server-error').modal('show') } else { - $('#ajax-content').html(jqXHR.responseText); + $('#ajax-content').html(jqXHR.statusText); } } }