PiRSquared17 / activescaffold

Automatically exported from code.google.com/p/activescaffold
MIT License
0 stars 0 forks source link

Spinner Named Incorrectly in _search.html.erb #719

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In _search.erb.html, you are calling <%= loading_indicator_tag(:action => 
:search) %> to setup the spinner for when a user clicks search, but in the 
form_tag, you have $('#{loading_indicator_id(:action => :search, :id => 
params[:id])}').style.visibility = 'hidden';.  This causes an error and makes 
the 
form fall back to a standard POST.  The solution is to change the original 
method call to <%= loading_indicator_tag(:action => :search, :id => 
params[:id]) %>.

Patch attached

Original issue reported on code.google.com by bigbadh...@gmail.com on 1 Dec 2009 at 8:55

Attachments:

GoogleCodeExporter commented 9 years ago
I have fixed removing params[:id] because I think there is no id in search 
action.
Fixed in 0024017

Original comment by sergio.c...@gmail.com on 3 Dec 2009 at 9:00