mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
Autocomplete lists should be based on "q" parameter
If you don't filter server-side, the user sees the full list until another character is entered.
This commit is contained in:
parent
9ccd6d11d8
commit
c79d1c964a
4 changed files with 6 additions and 5 deletions
|
|
@ -26,7 +26,7 @@ class ProjectsController < ApplicationController
|
|||
format.rss &render_rss_feed
|
||||
format.atom &render_atom_feed
|
||||
format.text &render_text_feed
|
||||
format.autocomplete { render :text => for_autocomplete(@projects) }
|
||||
format.autocomplete { render :text => for_autocomplete(@projects, params[:q]) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue