Skip to content
Snippets Groups Projects
Commit 50dfb936 authored by degygii's avatar degygii
Browse files

fixed problem with _id (renamed from id)

parent ba683025
No related branches found
No related tags found
No related merge requests found
......@@ -412,9 +412,10 @@
deleteEvent: function(etag) {
console.log('delete triggered' + etag);
console.log(curEventData);
if (confirm("Delete " + curEventData.title_de + "?")) {
amivcore.events.DELETE({
id: curEventData.id,
id: curEventData._id,
header: {
// 'If-Match': $('#event-modal').attr('data-etag')
'If-Match': etag
......@@ -486,7 +487,7 @@
}
console.log(curEventDataChanged);
amivcore.events.PATCH({
id: curEventData.id,
id: curEventData._id,
header: {
'If-Match': $('.events-edit-table').attr('data-etag')
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment