From 745ec4ab9c49fe8904907aed7b5739ce2e73948e Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 28 Dec 2009 15:30:11 -0500 Subject: [PATCH] KronolithCore isn't fully defined at this point yet, need to define the function here. --- kronolith/js/kronolith.js | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index afd25279b..c44f33c87 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -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'); -- 2.11.0