app/assets/javascripts/spree/backend/taxon_autocomplete.js.erb in spree_backend-2.4.10 vs app/assets/javascripts/spree/backend/taxon_autocomplete.js.erb in spree_backend-3.0.0.rc1
- old
+ new
@@ -5,12 +5,11 @@
$('#product_taxon_ids').select2({
placeholder: Spree.translations.taxon_placeholder,
multiple: true,
initSelection: function (element, callback) {
var url = Spree.url(Spree.routes.taxons_search, {
- ids: element.val(),
- token: Spree.api_key
+ ids: element.val()
});
return $.getJSON(url, null, function (data) {
return callback(data['taxons']);
});
},
@@ -22,11 +21,10 @@
per_page: 50,
page: page,
without_children: true,
q: {
name_cont: term
- },
- token: Spree.api_key
+ }
};
},
results: function (data, page) {
var more = page < data.pages;
return {