mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-11 15:12:37 +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) -%>
|
if source_view_is_one_of(:project,:tag) -%>
|
||||||
$('#<%= dom_id(t) %>').fadeOut(400, function() {
|
$('#<%= dom_id(t) %>').fadeOut(400, function() {
|
||||||
$('#<%= dom_id(t) %>').remove();
|
$('#<%= 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 -%>
|
<%= "$('#deferred_pending_container-empty-d').show();".html_safe if @remaining_deferred_or_pending_count==0 -%>
|
||||||
});
|
});
|
||||||
<% else -%>
|
<% else -%>
|
||||||
$('#<%= item_container_id(t) %>_items').append("<%= html%>");
|
var container = $('#<%= item_container_id(t) %>_items');
|
||||||
|
container.append("<%= html%>");
|
||||||
|
TracksPages.sort_container(container);
|
||||||
<% end -%>
|
<% end -%>
|
||||||
TodoItems.highlight_todo('#<%= dom_id(t, 'line')%>');
|
TodoItems.highlight_todo('#<%= dom_id(t, 'line')%>');
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue