diff --git a/client/client.coffee b/client/client.coffee index 8c8c7d7..0f118f6 100644 --- a/client/client.coffee +++ b/client/client.coffee @@ -120,6 +120,7 @@ Template.notelist.notelist = -> ### Template.notelist.events 'click .close-note': -> notes.update @_id, $set: archived: yes + 'click .edit-note': -> Router.go 'notes' 'keypress #newNote': (e,template) -> if e.keyCode is 13 and template.find('#newNote').value isnt "" notes.insert diff --git a/client/view/templates.html b/client/view/templates.html index a17b86a..d64d21f 100644 --- a/client/view/templates.html +++ b/client/view/templates.html @@ -33,7 +33,7 @@ {{#each notelist}} - {{#if active}} + {{#if active}} {{/if}} {{title}} {{content}}