From 18cf6db7e4d82cf0468286fce68ec5c8c5ed697a Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 8 Sep 2010 19:13:15 +0200 Subject: [PATCH] Merge from IMP: Improved error handling if server sends back totally invalid response (e.g. 500 code) --- kronolith/js/kronolith.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index f454e0f69..81b9cb234 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -57,7 +57,10 @@ KronolithCore = { this.showNotifications([ { type: 'horde.error', message: Kronolith.text.ajax_error } ]); this.debug('onException', e); }.bind(this), - onFailure: function(t, o) { KronolithCore.debug('onFailure', t); }, + onFailure: function(t, o) { + KronolithCore.debug('onFailure', t); + KronolithCore.showNotifications([ { type: 'horde.error', message: Kronolith.text.ajax_error } ]); + }, evalJS: false, evalJSON: true }, -- 2.11.0