Favorites do not change the current date.

This commit is contained in:
Nathan Gray 2015-12-21 23:03:42 +00:00
parent fae06bcbe5
commit e1d60f6729

View File

@ -1691,9 +1691,11 @@ app.classes.calendar = AppJS.extend(
{
state.state = {view: 'week'};
}
// States with no name (favorites other than No filters) default to
// today. Applying a favorite should keep the current date.
if(!state.state.date)
{
state.state.date = new Date();
state.state.date = state.name ? this.state.date : new Date();
}
if(typeof state.state.weekend == 'undefined')
{