From: Jan Schneider Date: Tue, 10 Aug 2010 22:51:31 +0000 (+0200) Subject: Fix toggling holiday off and on if there is a maximum event limit. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=659aaf888e81fafe99e0d0c93d3dc73a4ff61c99;p=horde.git Fix toggling holiday off and on if there is a maximum event limit. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index e296e816f..b38ca8248 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -1225,7 +1225,12 @@ KronolithCore = { } }); }); - allEvents.invoke('remove'); + allEvents.each(function(el) { + if (el.retrieve('calendar').startsWith('holiday|')) { + this.holidays = this.holidays.without(el.retrieve('eventid')); + } + el.remove(); + }, this); for (var date = dates[0]; !date.isAfter(dates[1]); date.add(1).days()) { day = this.monthDays['kronolithMonthDay' + date.dateString()]; more = day.select('.kronolithMore');