From: Jan Schneider Date: Mon, 11 May 2009 07:30:51 +0000 (+0200) Subject: Reset spinner even if no events returned. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bfb122f51c730385abad8a5fe699bde20f23651c;p=horde.git Reset spinner even if no events returned. --- diff --git a/kronolith/js/src/kronolith.js b/kronolith/js/src/kronolith.js index 84ac0c203..3f09adc87 100644 --- a/kronolith/js/src/kronolith.js +++ b/kronolith/js/src/kronolith.js @@ -366,8 +366,8 @@ KronolithCore = { function(r) { if (r.response.events) { this._removeEvent(eventid, cal); - this._loadEventsCallback(r); } + this._loadEventsCallback(r); }.bind(this)); }.bind(this) }); cell.down('.kronolithDay') @@ -993,8 +993,8 @@ KronolithCore = { function(r) { if (r.response.events) { this._removeEvent(event.key, event.value.calendar); - this._loadEventsCallback(r); } + this._loadEventsCallback(r); }.bind(this)); }, @@ -1255,12 +1255,10 @@ KronolithCore = { 'view_end': end }), function(r) { - if (r.response.events) { - if (eventid) { - this._removeEvent(eventid, cal); - } - this._loadEventsCallback(r); + if (r.response.events && eventid) { + this._removeEvent(eventid, cal); } + this._loadEventsCallback(r); this._closeRedBox(); }.bind(this)); e.stop();