Skip to content

Commit

Permalink
- replacing js spread operator for better compatibility with older br…
Browse files Browse the repository at this point in the history
…owsers
  • Loading branch information
rptmat57 committed Oct 23, 2023
1 parent cdff2bc commit 03f2612
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions NEMO/templates/calendar/calendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,11 @@
{# Adds an event source feed to an event source list #}
function add_item_to_event_feed_list(item_event_source_list, url, event_type, data)
{
let new_data = {event_type};
Object.assign(new_data, data);
item_event_source_list.push({
url,
data: {
event_type,
...data,
},
data: new_data,
});
}

Expand Down Expand Up @@ -544,7 +543,7 @@
let item = get_selected_item();
if (item && item !== "personal_schedule" && item !== "all_tools" && item !== "all_areas" && item !== "all_areastools")
{
item = JSON.parse(item)
item = JSON.parse(item);
let event_changes =
{
"area": item.id,
Expand Down

0 comments on commit 03f2612

Please sign in to comment.