date don't change correctly in the view list (bug #973) fixed
This commit is contained in:
parent
ba2d203a54
commit
8c28aec664
|
@ -705,10 +705,12 @@ function ListView(element, calendar) {
|
||||||
if (delta) {
|
if (delta) {
|
||||||
if (delta < 0){
|
if (delta < 0){
|
||||||
addDays(t.start, -7);
|
addDays(t.start, -7);
|
||||||
|
addDays(t.end, -7);
|
||||||
if (!opt('weekends')) {
|
if (!opt('weekends')) {
|
||||||
skipWeekend(t.start, delta < 0 ? -1 : 1);
|
skipWeekend(t.start, delta < 0 ? -1 : 1);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
addDays(t.start, 7);
|
||||||
addDays(t.end, 7);
|
addDays(t.end, 7);
|
||||||
if (!opt('weekends')) {
|
if (!opt('weekends')) {
|
||||||
skipWeekend(t.end, delta < 0 ? -1 : 1);
|
skipWeekend(t.end, delta < 0 ? -1 : 1);
|
||||||
|
|
Loading…
Reference in New Issue