changed: serialize trash once data is saved
This commit is contained in:
parent
e4bcad0420
commit
e714b4684c
3
main.js
3
main.js
|
@ -2353,13 +2353,12 @@ function restoredeleted()
|
|||
if (index > -1)
|
||||
{
|
||||
var notetorestore = trash.splice(index, 1).pop();
|
||||
window.localStorage.setItem("trash", JSON.stringify(trash));
|
||||
|
||||
notetorestore.title += " - restored on " + timestamp();
|
||||
delete notetorestore.deletiondate;
|
||||
localdata.unshift(notetorestore);
|
||||
loadnote(notetorestore.title);
|
||||
datachanged();
|
||||
window.localStorage.setItem("trash", JSON.stringify(trash));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue