mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03: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
|
|
@ -22,7 +22,7 @@ class ContextsController < ApplicationController
|
|||
format.rss &render_contexts_rss_feed
|
||||
format.atom &render_contexts_atom_feed
|
||||
format.text { render :action => 'index', :layout => false, :content_type => Mime::TEXT }
|
||||
format.autocomplete { render :text => for_autocomplete(@active_contexts + @hidden_contexts)}
|
||||
format.autocomplete { render :text => for_autocomplete(@active_contexts + @hidden_contexts, params[:q])}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue