summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-22 11:30:40 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-22 11:32:57 +0200
commit65c14e21ce0ff355366c126debcf88480959a0da (patch)
tree8ab0e3c995beee54d87e9700522a0433ff3df3c9
parente5d458c0683acb409083a0e3f1baa4698ececda6 (diff)
downloadnextcloud-server-65c14e21ce0ff355366c126debcf88480959a0da.tar.gz
nextcloud-server-65c14e21ce0ff355366c126debcf88480959a0da.zip
date don't change correctly in the view list (bug #973) fixed
-rw-r--r--apps/calendar/js/calendar.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js
index bc012a68c4b..b05a33360a4 100644
--- a/apps/calendar/js/calendar.js
+++ b/apps/calendar/js/calendar.js
@@ -661,10 +661,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);