mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 10:40:13 +01:00
sort when the next instance of a recurring todo is added
This commit is contained in:
parent
021d53f359
commit
00bd19b4ff
1 changed files with 3 additions and 1 deletions
|
|
@ -84,7 +84,9 @@ var <%= object_name %> = {
|
||||||
<% # show new todo if the completed todo was recurring
|
<% # show new todo if the completed todo was recurring
|
||||||
if @todo.from_recurring_todo?
|
if @todo.from_recurring_todo?
|
||||||
unless @new_recurring_todo.nil? || (@new_recurring_todo.deferred? && !source_view_is(:deferred)) -%>
|
unless @new_recurring_todo.nil? || (@new_recurring_todo.deferred? && !source_view_is(:deferred)) -%>
|
||||||
$('#<%= item_container_id(@new_recurring_todo) %>_items').append(<%=object_name%>.html_for_recurring_todo());
|
var container = $('#<%= item_container_id(@new_recurring_todo) %>_items');
|
||||||
|
conainer.append(<%=object_name%>.html_for_recurring_todo());
|
||||||
|
TracksPages.sort_container(container);
|
||||||
$('#c<%= @new_recurring_todo.context_id %>').slideDown(500, function() {
|
$('#c<%= @new_recurring_todo.context_id %>').slideDown(500, function() {
|
||||||
<%=object_name%>.highlight_updated_recurring_todo(next_steps);
|
<%=object_name%>.highlight_updated_recurring_todo(next_steps);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue