diff --git a/static/js/utils.js b/static/js/utils.js index 51787fb61..4abc204b4 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -25,6 +25,10 @@ Request.JSON.mdb = new Class({ Extends: Request.JSON, options: { - onComplete: ajax_login_redirect + onComplete: ajax_login_redirect, + onFailure: function(xhr) { + $(document.body).setStyle("overflow", "auto"); + $(document.body).set("html", xhr.responseText); + } } -}); \ No newline at end of file +}); diff --git a/templates/admin/listing.html b/templates/admin/listing.html index eb1d00896..79dd8bf9d 100644 --- a/templates/admin/listing.html +++ b/templates/admin/listing.html @@ -23,7 +23,7 @@ - + {% endif %}