migrate deleting a note from notes page to jqeury

This commit is contained in:
Reinier Balt 2010-11-11 22:14:14 +01:00
parent 7b3c07a754
commit 145c9105dd
13 changed files with 145 additions and 84 deletions

View file

@ -0,0 +1,10 @@
remove_deleted_note();
set_page_badge(<%=@down_count%>);
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();
});
}