[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
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user