Sha256: 65aa1dc97089d903f69d97f8a439ff942b106db83c0ba6c8f6989ae06e21d7cd

Contents?: true

Size: 1.15 KB

Versions: 5

Compression:

Stored size: 1.15 KB

Contents

<script src="/javascripts/jquery.example.js" type="text/javascript"></script>
    
<form id="search" onsubmit="search_submit();return false;" action="/collections/search/" method="post" style="text-align:center">
  <fieldset>
    <input id="search" type="text" name="search" class="search" value="<%=@query%>"/>
    <button type="submit" id="submit_button" class="button search" style="display:none">search</button>
    <img id="search_load" src="/images/loading.gif" style="width:25px;height:25px;vertical-align:sub;display:none"></img>
  </fieldset>  
</form>

<script>
 $( function() {
   $('input#search').example("{'name':'franky'} | [['count',-1]]", { className: 'no_input' } );
   $('input#search').hover( function() { $(this).css( "border-color", "#92b948") }, function() { $(this).css( "border-color", "#434343") })
 });

 function search_submit()
 {
   $.ajax({
     data:       $.param( $("form#search").serializeArray() ),
     dataType:   'script',
     type:       'post',
     url:        '/collections/search/',
     beforeSend: function() { $('img#search_load').show(); },
     complete:   function() { $('img#search_load').hide(); }     
   }); 
 }
</script>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongo3-0.0.9 lib/views/collections/_search_form.erb
mongo3-0.0.8 lib/views/collections/_search_form.erb
mongo3-0.0.7 lib/views/collections/_search_form.erb
mongo3-0.0.6 lib/views/collections/_search_form.erb
mongo3-0.0.5 lib/views/collections/_search_form.erb