From e5669c67343c2fc3fae317a525ec8a3939855f8f Mon Sep 17 00:00:00 2001 From: fazo96 Date: Tue, 23 Sep 2014 10:32:08 +0200 Subject: [PATCH] better redirect --- client/client.coffee | 1 + client/view/templates.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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}}