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

View File

@ -82,7 +82,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
var successCallback = function () {
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;