Sha256: 91034089d4ce18345877ad89acbf39ad3affcce898819a1fcf962933343c737d
Contents?: true
Size: 1.48 KB
Versions: 97
Compression:
Stored size: 1.48 KB
Contents
<% href = url_for(params_for(:action => :update_table, :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';", :complete => "$('#{loading_indicator_id(:action => :search, :id => params[:id])}').style.visibility = 'hidden';", :failure => "ActiveScaffold.report_500_response('#{active_scaffold_id}')", :update => active_scaffold_content_id, :html => { :href => href, :id => search_form_id, :class => 'search', :method => :get } %> <input type="text" name="search" size="50" value="<%= params[:search] -%>" class="text-input" id="<%= search_input_id %>" autocompleted="off" /> <a href="javascript:void(0)" class="cancel" onclick="f = this.up('form'); f.reset(); f.onsubmit();"><%= as_(:reset) -%></a> <%= loading_indicator_tag(:action => :search) %> </form> <script type="text/javascript"> //<![CDATA[ new TextFieldWithExample('<%= search_input_id %>', '<%= as_(:live_search) %>', {focus: true}); new Form.Element.Observer('<%= search_input_id %>', 1.5, function(element, value) { if (!$(element.id)) return false; // because the element may have been destroyed $(element).up('form').onsubmit(); }); //]]> </script>
Version data entries
97 entries across 97 versions & 2 rubygems