From fa62547d77fa027aadd37a122f81dbbc69005d16 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 29 Sep 2015 16:50:49 +0000 Subject: [PATCH] Keep user's last choice for weekend in week view --- calendar/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index 0b9e1c680f..fffe9213d1 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -2361,6 +2361,7 @@ app.classes.calendar = AppJS.extend( }) .on('click', '.ui-datepicker-week-col', function() { var view = app.calendar.state.view; + var days = app.calendar.state.days; // Fake a click event on the first day to get the updated date $j(this).next().click(); @@ -2368,7 +2369,7 @@ app.classes.calendar = AppJS.extend( // Set to week view, if in one of the views where we change view if(app.calendar.sidebox_changes_views.indexOf(view) >= 0) { - app.calendar.update_state({view: 'week', date: date.getValue(), days: false}); + app.calendar.update_state({view: 'week', date: date.getValue(), days: days}); } else if (app.calendar.state.view == 'planner') {