mirror of
https://github.com/fazo96/homework.git
synced 2025-01-09 12:10:08 +01:00
better redirect
This commit is contained in:
parent
475181698e
commit
e5669c6734
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user