Sha256: 527adfed9e964f76e45c1549471467d80a188f17a82610615693e8dc9d2cd44c

Contents?: true

Size: 1021 Bytes

Versions: 11

Compression:

Stored size: 1021 Bytes

Contents

<%= render :partial => 'admin/shared/product_sub_menu' %>

<%= render :partial => 'admin/shared/product_tabs', :locals => {:current => "Taxons"} %>
<div id="selected-taxons">
  <%= render :partial => "taxon_table", :locals => {:taxons => @taxons} %>
</div>


<%= form_tag('#') do %>
  <label><%= t('search') %>:</label>
  <input id="searchtext" size="25">
<% end %>

<%= javascript_tag do %>
  function search_for_taxons(){
    jQuery.ajax({
     data: {q: jQuery("#searchtext").val() }, 
     success: function(request){
       jQuery('#search_hits').html(request);
     },
     type: 'post',
     url: '<%= available_admin_product_taxons_url(@product) %>'
    });
  }

  jQuery("#searchtext").keypress(function (e) {
    if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
      search_for_taxons();

      return false;
    } else {
       return true;
    }
  });

  jQuery("#searchtext").delayedObserver(function() {
    search_for_taxons();
  }, 0.75);
<% end %>
<br/>
<div id="search_hits"></div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_core-0.40.4 app/views/admin/taxons/selected.html.erb
spree_core-0.50.4 app/views/admin/taxons/selected.html.erb
spree_core-0.50.3 app/views/admin/taxons/selected.html.erb
spree_core-0.60.0.RC1 app/views/admin/taxons/selected.html.erb
spree_core-0.50.2 app/views/admin/taxons/selected.html.erb
spree_core-0.50.1 app/views/admin/taxons/selected.html.erb
spree_core-0.50.0 app/views/admin/taxons/selected.html.erb
spree_core-0.40.3 app/views/admin/taxons/selected.html.erb
spree_core-0.40.2 app/views/admin/taxons/selected.html.erb
spree_core-0.40.1 app/views/admin/taxons/selected.html.erb
spree_core-0.40.0 app/views/admin/taxons/selected.html.erb