mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-24 09:46:11 +01:00
Dynamically load autocompletes
This cuts something like 100ms off of page load times! Closes #1011
This commit is contained in:
parent
8de74939ea
commit
9ab69adb38
10 changed files with 30 additions and 24 deletions
|
|
@ -22,6 +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)}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue