From 8c28aec664612c4deab7eb79acfe293a77839417 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Fri, 22 Jun 2012 11:30:40 +0200 Subject: [PATCH] date don't change correctly in the view list (bug #973) fixed --- apps/calendar/js/calendar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index f8ab2fe4bde..e17f88e38be 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -705,10 +705,12 @@ function ListView(element, calendar) { if (delta) { if (delta < 0){ addDays(t.start, -7); + addDays(t.end, -7); if (!opt('weekends')) { skipWeekend(t.start, delta < 0 ? -1 : 1); } }else{ + addDays(t.start, 7); addDays(t.end, 7); if (!opt('weekends')) { skipWeekend(t.end, delta < 0 ? -1 : 1); -- 2.39.5