From 65fa753b7ef42b3a5296083a1d7aadbe377c752c Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 11 Jan 2012 16:59:06 +0100 Subject: [PATCH] Minor fixes. --- static/js/utils.js | 8 ++++++-- templates/admin/listing.html | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) 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 %}