Fix 'Today' button always showed wrong week when you clicked it on a Sunday (with weekday starts on Monday)

This commit is contained in:
Nathan Gray 2015-11-30 17:55:21 +00:00
parent 9de2bba126
commit e2680aef64

View File

@ -2647,7 +2647,7 @@ app.classes.calendar = AppJS.extend(
diff = day === 6 ? 0 : day === 0 ? -1 : -(day + 1);
break;
case 'Monday':
diff = day === 0 ? 1 : 1-day;
diff = day === 0 ? -6 : 1-day;
break;
case 'Sunday':
default: