Skip to content
Snippets Groups Projects
Commit ef9ecf13 authored by Romeo Fragomeli's avatar Romeo Fragomeli
Browse files

[IMP] web: allow to change the scale also when changing the date

This commit allow to change the scale at the same time as changing the date.

Task ID: 1891957
parent c96e3b96
Branches
Tags
No related merge requests found
......@@ -236,6 +236,9 @@ var CalendarController = AbstractController.extend({
// When clicking on a random day of a random other week, switch to week view
this.model.setScale('week');
}
if (event.data.scale) {
this.model.setScale(event.data.scale);
}
this.model.setDate(event.data.date);
this.reload();
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment