From: Jan Schneider Date: Wed, 8 Sep 2010 17:13:15 +0000 (+0200) Subject: Merge from IMP: Improved error handling if server sends back totally invalid response... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=18cf6db7e4d82cf0468286fce68ec5c8c5ed697a;p=horde.git Merge from IMP: Improved error handling if server sends back totally invalid response (e.g. 500 code) --- 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 },