From e1d60f672988fcce071b207ab34ead19f6668a47 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 21 Dec 2015 23:03:42 +0000 Subject: [PATCH] Favorites do not change the current date. --- calendar/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index 57e5bb953d..d9a7972b4a 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -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') {