mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-03 15:58:50 +01:00
sort when a pending successor is activated
This commit is contained in:
parent
00bd19b4ff
commit
8fd8158840
1 changed files with 6 additions and 2 deletions
|
|
@ -127,11 +127,15 @@ var <%= object_name %> = {
|
|||
if source_view_is_one_of(:project,:tag) -%>
|
||||
$('#<%= dom_id(t) %>').slideUp(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)%>');
|
||||
<% end -%>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue