Sha256: c845f55f3261827bb8f71fa8ccfe8ff815411c181f3b59de51cd2460e30535a9

Contents?: true

Size: 1023 Bytes

Versions: 26

Compression:

Stored size: 1023 Bytes

Contents

<% url_options = params.merge(:controller => controller, :action => :browse, :page => 1, :update => 1, :escape => false) -%>
<%= form_tag url_options, {:method => :get, :remote => true, :id => record_select_search_id}  -%>
  <%= text_field_tag 'search', params[:search], :autocomplete => 'off', :class => 'text-input' %>
  <%= submit_tag 'search', :class => "search_submit" %>
</form>

<script type="text/javascript">
  //<![CDATA[
<% if RecordSelect::Config.js_framework == :prototype %>
  var i = $(<%= record_select_search_id.to_json.html_safe %>).down('input.text-input');
  Form.Element.AfterActivity(i, function() {
      $(<%= record_select_search_id.to_json.html_safe -%>).down('input.search_submit').click();
  }, 0.35);
<% elsif RecordSelect::Config.js_framework == :jquery %>
  $(<%= "##{record_select_search_id}".to_json.html_safe %>).find('input.text-input').delayedObserver(0.35, function() {
     $(<%= "##{record_select_search_id}".to_json.html_safe %>).trigger("submit");});
<% end %>
  //]]>
</script>
  

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
recordselect_vho-4.0.0 app/views/record_select/_search.html.erb
recordselect_vho-3.1.104 app/views/record_select/_search.html.erb
recordselect_vho-3.1.103 app/views/record_select/_search.html.erb
recordselect-3.0.5 app/views/record_select/_search.html.erb
recordselect_vho-3.0.206 app/views/record_select/_search.html.erb
recordselect_vho-3.0.205 app/views/record_select/_search.html.erb
recordselect_vho-3.1.102 app/views/record_select/_search.html.erb
recordselect_vho-3.0.204 app/views/record_select/_search.html.erb
recordselect-3.2.0 app/views/record_select/_search.html.erb
recordselect-3.1.9 app/views/record_select/_search.html.erb
recordselect_vho-3.1.101 app/views/record_select/_search.html.erb
recordselect-3.1.8 app/views/record_select/_search.html.erb
recordselect_vho-3.1.100 app/views/record_select/_search.html.erb
recordselect-3.1.7 app/views/record_select/_search.html.erb
recordselect-3.1.6 app/views/record_select/_search.html.erb
recordselect-3.1.5 app/views/record_select/_search.html.erb
recordselect-3.1.4 app/views/record_select/_search.html.erb
recordselect-3.1.3 app/views/record_select/_search.html.erb
recordselect-3.1.2 app/views/record_select/_search.html.erb
recordselect-3.1.1 app/views/record_select/_search.html.erb