mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
sort after adding to existing container
This commit is contained in:
parent
0469a990c5
commit
e451e2ed5e
1 changed files with 3 additions and 1 deletions
|
|
@ -29,7 +29,9 @@ remove_todo: function(next_steps) {
|
|||
});
|
||||
},
|
||||
add_to_existing_container: function(next_steps) {
|
||||
$('#<%= item_container_id(@todo) %>_items').append(<%=object_name%>.html_for_todo());
|
||||
var container = $('#<%= item_container_id(@todo) %>_items');
|
||||
container.append(<%=object_name%>.html_for_todo());
|
||||
TracksPages.sort_container(container);
|
||||
<% if source_view_is_one_of(:calendar) -%>
|
||||
next_steps.go();
|
||||
<% if (@target_context_count==1) || ( (@todo.deferred? || @todo.pending?) && @remaining_deferred_or_pending_count == 1) -%>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue