mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-08 18:28:50 +01:00
fix #1121 and add tests for this
This commit is contained in:
parent
3711acb6ab
commit
b02bb3fdde
7 changed files with 70 additions and 13 deletions
|
|
@ -287,7 +287,7 @@ module TodosHelper
|
|||
end
|
||||
|
||||
def date_field_tag(name, id, value = nil, options = {})
|
||||
text_field_tag name, value, {"size" => 12, "id" => id, "class" => "Date", "onfocus" => "Calendar.setup", "autocomplete" => "off"}.update(options.stringify_keys)
|
||||
text_field_tag name, value, {"size" => 12, "id" => id, "class" => "Date", "autocomplete" => "off"}.update(options.stringify_keys)
|
||||
end
|
||||
|
||||
def update_needs_to_hide_context
|
||||
|
|
@ -295,7 +295,7 @@ module TodosHelper
|
|||
(@remaining_in_context == 0 && @todo_was_deferred_from_active_state) ||
|
||||
(@remaining_in_context == 0 && @todo.completed? && !(@original_item_was_deferred || @original_item_was_hidden)) if source_view_is(:tag)
|
||||
|
||||
return false if source_view_is(:project)
|
||||
return false if source_view_is_one_of(:project, :calendar)
|
||||
|
||||
return (@remaining_in_context == 0) && !source_view_is(:context)
|
||||
end
|
||||
|
|
@ -403,7 +403,7 @@ module TodosHelper
|
|||
end
|
||||
end
|
||||
html += "}}) " * animation.count
|
||||
return html
|
||||
return html + ";"
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue