mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-12 07:32:37 +01:00
The project autocompletion now only draws from active projects.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@463 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
569767b8c1
commit
9fc4d4ed61
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ module TodosHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def project_names_for_autocomplete
|
def project_names_for_autocomplete
|
||||||
array_or_string_for_javascript( ['None'] + @projects.collect{|p| escape_javascript(p.name) } )
|
array_or_string_for_javascript( ['None'] + @projects.select{ |p| p.active? }.collect{|p| escape_javascript(p.name) } )
|
||||||
end
|
end
|
||||||
|
|
||||||
def context_names_for_autocomplete
|
def context_names_for_autocomplete
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue