mirror of
https://github.com/fazo96/homework.git
synced 2025-01-24 14:24:20 +01:00
better redirect
This commit is contained in:
parent
475181698e
commit
e5669c6734
@ -120,6 +120,7 @@ Template.notelist.notelist = ->
|
|||||||
###
|
###
|
||||||
Template.notelist.events
|
Template.notelist.events
|
||||||
'click .close-note': -> notes.update @_id, $set: archived: yes
|
'click .close-note': -> notes.update @_id, $set: archived: yes
|
||||||
|
'click .edit-note': -> Router.go 'notes'
|
||||||
'keypress #newNote': (e,template) ->
|
'keypress #newNote': (e,template) ->
|
||||||
if e.keyCode is 13 and template.find('#newNote').value isnt ""
|
if e.keyCode is 13 and template.find('#newNote').value isnt ""
|
||||||
notes.insert
|
notes.insert
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
{{#each notelist}}
|
{{#each notelist}}
|
||||||
<a href="{{pathFor 'notes'}}" class="note list-group-item">
|
<a href="{{pathFor 'notes'}}" class="note list-group-item">
|
||||||
<span class="note-content">
|
<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>
|
<i class="fa fa-pencil-square-o"></i>
|
||||||
</a>{{/if}}
|
</a>{{/if}}
|
||||||
<b>{{title}}</b> <span class="note-desc">{{content}}</span>
|
<b>{{title}}</b> <span class="note-desc">{{content}}</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user