Sha256: 4ce157ee8d0235ee950897dc1c2c035ecf611b1d56cf4cb17b7462bbf573cbe6

Contents?: true

Size: 771 Bytes

Versions: 6

Compression:

Stored size: 771 Bytes

Contents

<div id="search" class="search">
    <% form_tag({ :controller => 'articles', :action => 'search' },
                { :method => 'get', :id => 'sform' }) do -%>
      <p><input type="text" id="q" name="q" value="" /></p>
    <% end -%>

    <div id="loading" class="loading" style="display:none;"><%= _("Searching")%>...</div>
    <div id="results" class="results"></div>
  <%= observe_field 'q',
                    :url        => { :controller => 'live', :action => 'search' },
                    :frequency  => 1,
                    :loading    => "Element.show('loading')",
                    :complete   => "Element.hide('loading')",
                    :update     => 'results',
                    :with       => "'q=' + encodeURIComponent($F('q'))" %>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typo-5.0.3.98.1 themes/scribbish/views/shared/_search.html.erb
typo-5.0.3.98 themes/scribbish/views/shared/_search.html.erb
typo-5.1.2 themes/scribbish/views/shared/_search.html.erb
typo-5.1.1 themes/scribbish/views/shared/_search.html.erb
typo-5.1.3 themes/scribbish/views/shared/_search.html.erb
typo-5.1 themes/scribbish/views/shared/_search.html.erb