From 355f49f7066b3890d0c679888c6ee2f2aadf8689 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 11 Jan 2022 10:52:02 +0100 Subject: [PATCH] Update working plan exceptions modal references of the calendar page. --- assets/js/pages/backend_calendar.js | 2 +- assets/js/pages/backend_calendar_default_view.js | 5 ++++- assets/js/pages/backend_calendar_table_view.js | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/assets/js/pages/backend_calendar.js b/assets/js/pages/backend_calendar.js index 4d264a48..1dc0ca36 100755 --- a/assets/js/pages/backend_calendar.js +++ b/assets/js/pages/backend_calendar.js @@ -71,7 +71,7 @@ window.BackendCalendar = window.BackendCalendar || {}; throw new Error('Provider could not be found: ' + providerId); } - WorkingPlanExceptionsModal.add().done(function (date, workingPlanException) { + App.Components.WorkingPlanExceptionsModal.add().done(function (date, workingPlanException) { var successCallback = function () { Backend.displayNotification(App.Lang.working_plan_exception_saved); diff --git a/assets/js/pages/backend_calendar_default_view.js b/assets/js/pages/backend_calendar_default_view.js index fd8049a4..ca4b0ee1 100755 --- a/assets/js/pages/backend_calendar_default_view.js +++ b/assets/js/pages/backend_calendar_default_view.js @@ -77,7 +77,10 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {}; var workingPlanException = lastFocusedEventData.data.workingPlanException; var provider = lastFocusedEventData.data.provider; - WorkingPlanExceptionsModal.edit(date, workingPlanException).done(function (date, workingPlanException) { + App.Components.WorkingPlanExceptionsModal.edit(date, workingPlanException).done(function ( + date, + workingPlanException + ) { var successCallback = function () { Backend.displayNotification(App.Lang.working_plan_exception_saved); diff --git a/assets/js/pages/backend_calendar_table_view.js b/assets/js/pages/backend_calendar_table_view.js index 83341c37..303223ea 100755 --- a/assets/js/pages/backend_calendar_table_view.js +++ b/assets/js/pages/backend_calendar_table_view.js @@ -154,7 +154,10 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {}; var workingPlanException = lastFocusedEventData.data.workingPlanException; var provider = lastFocusedEventData.data.provider; - WorkingPlanExceptionsModal.edit(date, workingPlanException).done(function (date, workingPlanException) { + App.Components.WorkingPlanExceptionsModal.edit(date, workingPlanException).done(function ( + date, + workingPlanException + ) { var successCallback = function () { Backend.displayNotification(App.Lang.working_plan_exception_saved);