Sha256: adb7fc969c1138b564349249c148cf1fb5f26968c54ea1cfd3a68d143989dc20
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
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(0.75, function(element, value) { search_for_taxons(); }) <% end %> <br/> <div id="search_hits"></div>
Version data entries
4 entries across 4 versions & 1 rubygems