quicknote example updated

This commit is contained in:
chrisdavidmills
2016-04-07 18:49:26 +01:00
parent 12917d03f2
commit e0733efa0c
3 changed files with 12 additions and 4 deletions
+5 -1
View File
@@ -129,10 +129,14 @@ function displayNote(title, body) {
});
}
/* functions to update and store notes */
function updateNote(delNote,newTitle,newBody) {
storeNote(newTitle, newBody);
displayNote(newTitle, newBody);
localStorage.removeItem(delNote);
displayNote(newTitle, newBody);
}
function storeNote(title, body) {