mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-05 15:31:47 +01:00
refactor application.rb further and migrate recurring todos
next: get tests for recurring todos
This commit is contained in:
parent
484356fe07
commit
cafa774b4c
33 changed files with 688 additions and 571 deletions
|
|
@ -1,6 +1,6 @@
|
|||
remove_deleted_note();
|
||||
set_page_badge(<%=@down_count%>);
|
||||
page_notify('notice', "<%= t('notes.deleted_note', :id => @note.id)%>", 5);
|
||||
TracksPages.set_page_badge(<%=@down_count%>);
|
||||
TracksPages.page_notify('notice', "<%= t('notes.deleted_note', :id => @note.id)%>", 5);
|
||||
|
||||
function remove_deleted_note() {
|
||||
$('div#note-<%=@note.id%>-wrapper').slideUp(1000,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<% if @saved -%>
|
||||
|
||||
TracksPages.hide_errors();
|
||||
page_notify('notice', 'Note <%=@note.id %> saved', 5);
|
||||
TracksPages.page_notify('notice', 'Note <%=@note.id %> saved', 5);
|
||||
replace_note_form_with_updated_note();
|
||||
|
||||
<% else -%>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue