Use the native JSON parse method

This commit is contained in:
Alex Tselegidis 2020-12-09 15:59:59 +02:00
parent b45fd3acd6
commit b794cb6e74

View file

@ -82,7 +82,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
var successCallback = function () { var successCallback = function () {
Backend.displayNotification(EALang.working_plan_exception_saved); Backend.displayNotification(EALang.working_plan_exception_saved);
var workingPlanExceptions = jQuery.parseJSON(provider.settings.working_plan_exceptions) || {}; var workingPlanExceptions = JSON.parse(provider.settings.working_plan_exceptions) || {};
workingPlanExceptions[date] = workingPlanException; workingPlanExceptions[date] = workingPlanException;