From b7f7c40d28e4831eebc02719c2a71e0f8721a1e9 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 28 Sep 2015 17:31:30 +0000 Subject: [PATCH] Always show weekends in month view --- calendar/js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index cbc2dd14e8..7b7d8d7f94 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -2366,7 +2366,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()}); + app.calendar.update_state({view: 'week', date: date.getValue(), days: false}); } else if (app.calendar.state.view == 'planner') { @@ -2689,6 +2689,10 @@ jQuery.extend(app.classes.calendar,{ var d = new Date(app.calendar.state.date); d.setUTCMonth(d.getUTCMonth() + delta); return d; + }, + show_weekend: function(state) + { + return true; } }),