From: Jan Schneider Date: Thu, 10 Jun 2010 23:15:40 +0000 (+0200) Subject: Return before removing the event, if this is not the most recent response. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=38056ea91833a55c55f67faf29944b13cc63618f;p=horde.git Return before removing the event, if this is not the most recent response. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index c48bb10b1..1bf163169 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -4414,7 +4414,10 @@ KronolithCore = { view_end: end, att: $H({ offDays: diff }).toJSON() }, function(r) { - if (r.response.events) { + // Check if this is the still the result of the most + // current request. + if (r.response.events && + r.response.sig == this.eventsLoading[r.response.cal]) { var days; if ((this.view == 'month' && Kronolith.conf.max_events) || @@ -4552,7 +4555,10 @@ KronolithCore = { att: attributes.toJSON() }, function(r) { - if (r.response.events) { + // Check if this is the still the result of the most current + // request. + if (r.response.events && + r.response.sig == this.eventsLoading[r.response.cal]) { this.removeEvent(event.key, event.value.calendar); } this.loadEventsCallback(r);