(js) Add automatic refresh of calendar view

We were only refreshing the selected component list, we now also refresh
the calendar view.
This commit is contained in:
Francis Lachapelle
2016-10-12 11:01:59 -04:00
parent e20d2281db
commit c50c3763b1
4 changed files with 14 additions and 5 deletions
@@ -111,6 +111,12 @@
changeDate($event, date);
}
/**
* Format a date according to the current view.
* - Day/Multicolumn: name of weekday
* - Week: week number
* - Month: name of month
*/
function _formatDate(date) {
if ($stateParams.view == 'month') {
date.setDate(1);