mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-24 09:46:11 +01:00
implement go to project with autocomplete
This commit is contained in:
parent
01005cc3d3
commit
79fdd5d625
12 changed files with 210 additions and 100 deletions
|
|
@ -52,7 +52,8 @@ class ProjectsController < ApplicationController
|
|||
end
|
||||
format.autocomplete do
|
||||
projects = current_user.projects.active + current_user.projects.hidden
|
||||
render :text => for_autocomplete(projects, params[:term])
|
||||
term = params[:term] || params[:query]
|
||||
render :text => for_autocomplete(projects, term)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue