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