From c35e07484286d214f364735d7ee0dc3cb35f0cb8 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 4 Nov 2016 14:37:23 -0400 Subject: [PATCH] (js) Mark form as dirty when removing an attendee --- UI/Templates/SchedulerUI/UIxAppointmentEditorTemplate.wox | 2 +- UI/WebServerResources/js/Scheduler/ComponentController.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/UI/Templates/SchedulerUI/UIxAppointmentEditorTemplate.wox b/UI/Templates/SchedulerUI/UIxAppointmentEditorTemplate.wox index 0398ffd67..304395b23 100644 --- a/UI/Templates/SchedulerUI/UIxAppointmentEditorTemplate.wox +++ b/UI/Templates/SchedulerUI/UIxAppointmentEditorTemplate.wox @@ -272,7 +272,7 @@ close + ng-click="editor.removeAttendee($chip, eventForm)">close
diff --git a/UI/WebServerResources/js/Scheduler/ComponentController.js b/UI/WebServerResources/js/Scheduler/ComponentController.js index 831676f3a..26e780a50 100644 --- a/UI/WebServerResources/js/Scheduler/ComponentController.js +++ b/UI/WebServerResources/js/Scheduler/ComponentController.js @@ -282,10 +282,11 @@ } } - function removeAttendee(attendee) { + function removeAttendee(attendee, form) { vm.component.deleteAttendee(attendee); if (vm.component.attendees.length === 0) vm.showAttendeesEditor = false; + form.$setDirty(); } function priorityLevel() {