From 220fb3d607160a8c226884a7afce4d243da6fc36 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 28 Nov 2016 09:37:05 -0500 Subject: [PATCH] (js) Update alarms after dragging an event --- UI/WebServerResources/js/Scheduler/CalendarListController.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UI/WebServerResources/js/Scheduler/CalendarListController.js b/UI/WebServerResources/js/Scheduler/CalendarListController.js index 4c5bc8acd..943e06e87 100644 --- a/UI/WebServerResources/js/Scheduler/CalendarListController.js +++ b/UI/WebServerResources/js/Scheduler/CalendarListController.js @@ -6,8 +6,8 @@ /** * @ngInject */ - CalendarListController.$inject = ['$rootScope', '$scope', '$timeout', '$state', '$mdDialog', 'sgHotkeys', 'sgFocus', 'Dialog', 'Preferences', 'CalendarSettings', 'Calendar', 'Component']; - function CalendarListController($rootScope, $scope, $timeout, $state, $mdDialog, sgHotkeys, focus, Dialog, Preferences, CalendarSettings, Calendar, Component) { + CalendarListController.$inject = ['$rootScope', '$scope', '$timeout', '$state', '$mdDialog', 'sgHotkeys', 'sgFocus', 'Dialog', 'Preferences', 'CalendarSettings', 'Calendar', 'Component', 'Alarm']; + function CalendarListController($rootScope, $scope, $timeout, $state, $mdDialog, sgHotkeys, focus, Dialog, Preferences, CalendarSettings, Calendar, Component, Alarm) { var vm = this, hotkeys = []; vm.component = Component; @@ -231,6 +231,7 @@ // Immediately perform the adjustments component.$adjust(params).then(function() { $rootScope.$emit('calendars:list'); + Alarm.getAlarms(); }, function(response) { onComponentAdjustError(response, component, params); }).finally(function() {