From 1a1deb28c27c06ed1924123cd110c9bf99338c80 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 14 Dec 2020 20:38:57 +0200 Subject: [PATCH] Use the native JSON.parse method instead of the jQuery variation --- assets/js/backend_calendar_working_plan_exceptions_modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/backend_calendar_working_plan_exceptions_modal.js b/assets/js/backend_calendar_working_plan_exceptions_modal.js index 85876691..4c724d32 100644 --- a/assets/js/backend_calendar_working_plan_exceptions_modal.js +++ b/assets/js/backend_calendar_working_plan_exceptions_modal.js @@ -90,7 +90,7 @@ window.BackendCalendarWorkingPlanExceptionsModal = window.BackendCalendarWorking } var selectedDate = date.toString('yyyy-MM-dd'); - var workingPlanExceptions = jQuery.parseJSON(provider.settings.working_plan_exceptions); + var workingPlanExceptions = JSON.parse(provider.settings.working_plan_exceptions); workingPlanExceptions[selectedDate] = { start: start.toString('HH:mm'),