%= render 'spree/admin/shared/product_sub_menu' %> <%= render 'spree/admin/shared/product_tabs', current: 'Product Properties' %> <%= render 'spree/shared/error_messages', target: @product %> <% content_for :page_actions do %>
<% end %> <%= form_for @product, :url => admin_product_url(@product), :method => :put do |f| %> <% end %> <%= javascript_tag do -%> var properties = <%= raw(@properties.to_json) %>; $('#product_properties').on('keydown', 'input.autocomplete', function() { already_auto_completed = $(this).is('ac_input'); if (!already_auto_completed) { $(this).autocomplete({source: properties}); $(this).focus(); } }); <% end -%>