mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
* Calendar - Fix month overflow bug when scrolling prev / next
This commit is contained in:
parent
dd299021c2
commit
7e275df4e4
@ -3990,6 +3990,9 @@ jQuery.extend(app.classes.calendar,{
|
||||
scroll: function(delta)
|
||||
{
|
||||
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);
|
||||
return d;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user