From 1c269e69096b18717a0e841e5eb2dcce047f181d Mon Sep 17 00:00:00 2001 From: Matt Lewis Date: Mon, 23 Nov 2015 16:45:15 +0000 Subject: [PATCH] feat(WeekViewWithDays): Add missing on-timespan-click callback. Closes #214 --- src/directives/mwlCalendarWeek.js | 3 ++- src/templates/calendar.html | 1 + src/templates/calendarWeekView.html | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/directives/mwlCalendarWeek.js b/src/directives/mwlCalendarWeek.js index 2ebf543f..f216d806 100644 --- a/src/directives/mwlCalendarWeek.js +++ b/src/directives/mwlCalendarWeek.js @@ -113,7 +113,8 @@ angular onEventTimesChanged: '=', dayViewStart: '=', dayViewEnd: '=', - dayViewSplit: '=' + dayViewSplit: '=', + onTimespanClick: '=' }, controller: 'MwlCalendarWeekCtrl as vm', link: function(scope, element, attrs, calendarCtrl) { diff --git a/src/templates/calendar.html b/src/templates/calendar.html index 0cf5bcea..ff31b174 100644 --- a/src/templates/calendar.html +++ b/src/templates/calendar.html @@ -44,6 +44,7 @@ day-view-start="vm.dayViewStart" day-view-end="vm.dayViewEnd" day-view-split="vm.dayViewSplit" + on-timespan-click="vm.onTimespanClick" ng-switch-when="week" > diff --git a/src/templates/calendarWeekView.html b/src/templates/calendarWeekView.html index 9ecfe8ff..541d3ac5 100644 --- a/src/templates/calendarWeekView.html +++ b/src/templates/calendarWeekView.html @@ -65,6 +65,7 @@ day-view-end="vm.dayViewEnd" day-view-split="vm.dayViewSplit" current-day="vm.currentDay" + on-timespan-click="vm.onTimespanClick" ng-if="vm.showTimes">