KronolithCore isn't fully defined at this point yet, need to define the
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 28 Dec 2009 20:30:11 +0000 (15:30 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 28 Dec 2009 20:30:11 +0000 (15:30 -0500)
function here.

kronolith/js/kronolith.js

index afd2527..c44f33c 100644 (file)
@@ -35,7 +35,17 @@ KronolithCore = {
     mapInitialized: false,
 
     doActionOpts: {
-        onException: this.onAjaxException.bind(this),
+        onException: function(parentfunc, r, e)
+        {
+            /* Make sure loading images are closed. */
+            this.loading--;
+            if (!this.loading) {
+                    $('kronolithLoading').hide();
+            }
+            this._closeRedBox();
+            this.showNotifications([ { type: 'horde.error', message: Kronolith.text.ajax_error } ]);
+            KronolithCore.debug('onException', e);
+        }.bind(this),
         onFailure: function(t, o) { KronolithCore.debug('onFailure', t); },
         evalJS: false,
         evalJSON: true
@@ -3612,19 +3622,6 @@ KronolithCore = {
         }
     },
 
-    /* Extend AJAX exception handling. */
-    onAjaxException: function(parentfunc, r, e)
-    {
-        /* Make sure loading images are closed. */
-        this.loading--;
-        if (!this.loading) {
-                $('kronolithLoading').hide();
-        }
-        this._closeRedBox();
-        this.showNotifications([ { type: 'horde.error', message: Kronolith.text.ajax_error } ]);
-        KronolithCore.debug('onException', e);
-    },
-
     toggleCalendar: function(elm)
     {
         elm.toggleClassName('on');