Skip to content

Commit

Permalink
submit button hides if javascript is active
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Oct 14, 2010
1 parent c8a1c1d commit 2e17e05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/projects/index.rhtml
Expand Up @@ -25,12 +25,14 @@
<%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>
</p>
<%= render :partial => 'custom_field', :collection => @custom_fields_used_for_project_filtering %>
<p class='buttons'><%= submit_tag l(:button_send) -%></p>
<p class='buttons'><%= submit_tag( l(:button_send), :id => 'filter_button') -%></p>
</div>
</fieldset>

<% end %>
<%= javascript_tag "Field.focus('search-input')" %>
<%= javascript_tag "Field.focus('search-input');" %>
<%= javascript_tag "$('filter_button').hide();" %>
<%= observe_form( :project_filtering,
:frequency => 0.5,
:url => { :controller => :projects, :action => :index, :format => :js },
Expand Down

0 comments on commit 2e17e05

Please sign in to comment.