tracks/app/views/notes/destroy.js.erb
Reinier Balt cafa774b4c refactor application.rb further and migrate recurring todos
next: get tests for recurring todos
2011-02-03 18:17:29 +01:00

10 lines
No EOL
322 B
Text

remove_deleted_note();
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,
function() {
$('div#note-<%=@note.id%>-wrapper').remove();
});
}