Merge from IMP: Improved error handling if server sends back totally invalid response...
authorJan Schneider <jan@wg.de>
Wed, 8 Sep 2010 17:13:15 +0000 (19:13 +0200)
committerJan Schneider <jan@horde.org>
Thu, 9 Sep 2010 14:53:31 +0000 (16:53 +0200)
kronolith/js/kronolith.js

index f454e0f..81b9cb2 100644 (file)
@@ -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
     },