From bfb122f51c730385abad8a5fe699bde20f23651c Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 11 May 2009 09:30:51 +0200 Subject: [PATCH] Reset spinner even if no events returned. --- kronolith/js/src/kronolith.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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(); -- 2.11.0