Sha256: d4991992ab49fbcd9ca924263270b65629b4127817c3524d9e4f700bfbff288c
Contents?: true
Size: 1.78 KB
Versions: 2
Compression:
Stored size: 1.78 KB
Contents
<% live_search = active_scaffold_config.search.live? -%> <% href = url_for(params_for(:action => :index, :escape => false).delete_if{|k,v| k == 'search'}) -%> <%= form_remote_tag :url => href, :method => :get, :before => "addActiveScaffoldPageToHistory('#{href}', '#{params[:controller]}')", :after => "$('#{loading_indicator_id(:action => :search, :id => params[:id])}').style.visibility = 'visible';#{"Form.disable('#{search_form_id}');" unless live_search }", :complete => "$('#{loading_indicator_id(:action => :search, :id => params[:id])}').style.visibility = 'hidden';#{"Form.enable('#{search_form_id}');" unless live_search }", :failure => "ActiveScaffold.report_500_response('#{active_scaffold_id}')", :html => { :action => href, :id => search_form_id, :class => 'search', :method => :get } %> <%= text_field_tag :search, search_params, :class => 'text-input', :id => search_input_id, :size => 50, :autocompleted => :off %> <%= submit_tag as_(:search), :class => "submit" unless live_search %> <%= link_to_remote as_(:reset), {:url => href, :with => "'search='", :method => :get, :failure => "ActiveScaffold.report_500_response('#{active_scaffold_id}')"}, :class => 'cancel' %> <%= loading_indicator_tag(:action => :search) %> </form> <script type="text/javascript"> //<![CDATA[ new TextFieldWithExample('<%= search_input_id %>', '<%= as_(live_search ? :live_search : :search_terms) %>', {focus: true}); <% if live_search -%> new Form.Element.DelayedObserver('<%= search_input_id %>', 0.5, function(element, value) { if (!$(element.id)) return false; // because the element may have been destroyed $(element).up('form').onsubmit(); }); <% end -%> //]]> </script>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brisk-bills-0.8.2 | vendor/plugins/active_scaffold/frontends/default/views/_search.html.erb |
brisk-bills-0.8.1 | vendor/plugins/active_scaffold/frontends/default/views/_search.html.erb |