mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
sort when a pending todo is activated
This commit is contained in:
parent
eb7b1e9ab6
commit
021d53f359
1 changed files with 3 additions and 1 deletions
|
|
@ -64,7 +64,9 @@ var <%= object_name %> = {
|
|||
next_steps.go();
|
||||
},
|
||||
add_todo_to_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 should_make_context_visible -%>
|
||||
$('#<%= item_container_id(@todo) %>').slideDown(500, function() {
|
||||
$("#<%= empty_container_msg_div_id %>").slideUp(100);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue