mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
sort when activating pending successors of deleted action
This commit is contained in:
parent
8fd8158840
commit
0469a990c5
1 changed files with 6 additions and 2 deletions
|
|
@ -75,11 +75,15 @@ function activate_pending_todos() {
|
|||
if source_view_is_one_of(:project,:tag) -%>
|
||||
$('#<%= dom_id(t) %>').fadeOut(400, function() {
|
||||
$('#<%= dom_id(t) %>').remove();
|
||||
$('#<%= item_container_id(t) %>_items').append("<%= html %>");
|
||||
var container = $('#<%= item_container_id(t) %>_items');
|
||||
container.append("<%= html %>");
|
||||
TracksPages.sort_container(container);
|
||||
<%= "$('#deferred_pending_container-empty-d').show();".html_safe if @remaining_deferred_or_pending_count==0 -%>
|
||||
});
|
||||
<% else -%>
|
||||
$('#<%= item_container_id(t) %>_items').append("<%= html%>");
|
||||
var container = $('#<%= item_container_id(t) %>_items');
|
||||
container.append("<%= html%>");
|
||||
TracksPages.sort_container(container);
|
||||
<% end -%>
|
||||
TodoItems.highlight_todo('#<%= dom_id(t, 'line')%>');
|
||||
<% end -%>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue