forked from extern/egroupware
* Calendar - Fix month overflow bug when scrolling prev / next
This commit is contained in:
parent
1387087b62
commit
74433c96e4
@ -4006,6 +4006,9 @@ jQuery.extend(app.classes.calendar,{
|
|||||||
scroll: function(delta)
|
scroll: function(delta)
|
||||||
{
|
{
|
||||||
var d = new Date(app.calendar.state.date);
|
var d = new Date(app.calendar.state.date);
|
||||||
|
// Set day to 15 so we don't get overflow on short months
|
||||||
|
// eg. Aug 31 + 1 month = Sept 31 -> Oct 1
|
||||||
|
d.setUTCDate(15);
|
||||||
d.setUTCMonth(d.getUTCMonth() + delta);
|
d.setUTCMonth(d.getUTCMonth() + delta);
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user