@@ -358,7 +358,7 @@ async function saveNote(){
|
|||||||
await api('notes','PUT',{title,content,tags},'&id='+editingId);
|
await api('notes','PUT',{title,content,tags},'&id='+editingId);
|
||||||
noteId=editingId;toast('Note mise à jour');
|
noteId=editingId;toast('Note mise à jour');
|
||||||
}else{
|
}else{
|
||||||
const r=await api('notes','POST',JSON.stringify({title,content,tags,urls}));
|
const r=await api('notes','POST',{title,content,tags,urls});
|
||||||
noteId=r.id;toast('Note créée');
|
noteId=r.id;toast('Note créée');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user