From: Michael J. Rubinsky Date: Mon, 28 Dec 2009 20:30:11 +0000 (-0500) Subject: KronolithCore isn't fully defined at this point yet, need to define the X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=745ec4ab9c49fe8904907aed7b5739ce2e73948e;p=horde.git KronolithCore isn't fully defined at this point yet, need to define the function here. --- 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');