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
1 changed files with 1 additions and 1 deletions

View File

@ -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'),