mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-03 07:48:50 +01:00
Ticket #300: Fixed broken create.js functionality
Conflicts: app/views/todos/create.js.rjs
This commit is contained in:
parent
1f556a4f0a
commit
407689780d
1 changed files with 2 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ module TodosHelper
|
|||
|
||||
def item_container_id (todo)
|
||||
if todo.deferred? or todo.pending?
|
||||
return "tickler"
|
||||
return "tickleritems"
|
||||
elsif source_view_is :project
|
||||
return "p#{todo.project_id}items"
|
||||
end
|
||||
|
|
@ -248,6 +248,7 @@ module TodosHelper
|
|||
return true if source_view_is(:project) && @todo.project.hidden? && @todo.project_hidden?
|
||||
return true if source_view_is(:project) && @todo.deferred?
|
||||
return true if !source_view_is(:deferred) && @todo.active?
|
||||
return true if source_view_is(:project) && @todo.pending?
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue