mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 23:48:28 +01:00
Avoid displaying more than 100 days in planner by user or category views (switching from year view), as it results in a sub-optimal user experience
This commit is contained in:
parent
fdfad272aa
commit
c7167979e4
@ -3269,7 +3269,8 @@ jQuery.extend(app.classes.calendar,{
|
|||||||
{
|
{
|
||||||
d.setUTCDate(d.getUTCDate() + parseInt(state.planner_days)-1);
|
d.setUTCDate(d.getUTCDate() + parseInt(state.planner_days)-1);
|
||||||
}
|
}
|
||||||
else if (state.last)
|
// Avoid killing the view by not showing more than 100 days
|
||||||
|
else if (state.last && (new Date(state.last) - new Date(state.first)) < (100 * 24 * 3600 * 1000) )
|
||||||
{
|
{
|
||||||
d = new Date(state.last);
|
d = new Date(state.last);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user