Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Instead of recreating the list, just append the new list-item. [assets/js/app.js] #25

Open
octalmage opened this issue Sep 20, 2014 · 0 comments

Comments

@octalmage
Copy link
Owner

filename : assets/js/app.js
line # : 574
tag : todo
md5 : f2c037667e4c6f38ac2689d2a7e03ca6

 * [todo] - Instead of recreating the list, just append the new list-item.
 */
function duplicateNote(id)
{
    notes.push(notes[current]);
    noteCache.push(noteCache[current]);
    saveNotes();
    updateList();
}

/**
 * Deletes note, saves, updates list then loads a new note.
 * @param  {int} id Note ID.
 */
function deleteNote(id)
{
    notes.splice(current, 1);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant