1
0
mirror of https://github.com/fazo96/homework.git synced 2025-01-10 12:14:22 +01:00

better redirect

This commit is contained in:
fazo96 2014-09-23 10:32:08 +02:00
parent 475181698e
commit e5669c6734
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -33,7 +33,7 @@
{{#each notelist}}
<a href="{{pathFor 'notes'}}" class="note list-group-item">
<span class="note-content">
{{#if active}}<a role="button" href="{{pathFor 'notes'}}" class="edit-note close">
{{#if active}}<a role="button" class="edit-note close">
<i class="fa fa-pencil-square-o"></i>
</a>{{/if}}
<b>{{title}}</b> <span class="note-desc">{{content}}</span>