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
}
},
- /* 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');