Use the native JSON.parse method instead of the jQuery variation

This commit is contained in:
Alex Tselegidis 2020-12-14 20:38:57 +02:00
parent b7ff6cbc16
commit 1a1deb28c2

View file

@ -90,7 +90,7 @@ window.BackendCalendarWorkingPlanExceptionsModal = window.BackendCalendarWorking
} }
var selectedDate = date.toString('yyyy-MM-dd'); 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] = { workingPlanExceptions[selectedDate] = {
start: start.toString('HH:mm'), start: start.toString('HH:mm'),