mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-25 16:44:09 +01:00
parent
7781281243
commit
65a2a727fb
2 changed files with 10 additions and 2 deletions
|
|
@ -1,6 +1,13 @@
|
|||
remove_deleted_note(<%=@note.id%>);
|
||||
TracksPages.set_page_badge(<%=@down_count%>);
|
||||
TracksPages.page_inform("<%= t('notes.deleted_note', :id => @note.id)%>");
|
||||
<%
|
||||
if @source_view == 'note' %>
|
||||
redirect_to("<%= project_path(@note.project) -%>")
|
||||
<% else %>
|
||||
remove_deleted_note(<%=@note.id%>);
|
||||
TracksPages.set_page_badge(<%=@down_count%>);
|
||||
<%
|
||||
end
|
||||
%>
|
||||
|
||||
function remove_deleted_note(id) {
|
||||
TracksPages.slide_up_and_remove('div#note-'+id+'-wrapper');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue