Sha256: 0fa9dfa81df078762d82b1212df9c18e0316a0191b0ce8e782b3ffece183bc2c

Contents?: true

Size: 760 Bytes

Versions: 3

Compression:

Stored size: 760 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

3 entries across 3 versions & 1 rubygems

Version Path
typo-5.0.2 themes/scribbish/views/shared/_search.html.erb
typo-5.0.1 themes/scribbish/views/shared/_search.html.erb
typo-5.0 themes/scribbish/views/shared/_search.html.erb