app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee.erb in spree_backend-2.4.4 vs app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee.erb in spree_backend-2.4.5
- old
+ new
@@ -21,16 +21,17 @@
url: Spree.url(Spree.routes.variants_api)
datatype: "json"
data: (term, page) ->
q:
product_name_or_sku_cont: term
+ token: Spree.api_key
results: (data, page) ->
window.variants = data["variants"]
results: data["variants"]
formatResult: formatVariantResult
formatSelection: (variant) ->
if !!variant.options_text
variant.name + " (#{variant.options_text})"
else
- variant.name
\ No newline at end of file
+ variant.name