app/assets/javascripts/admin/promotions.js in spree_promo-1.1.6 vs app/assets/javascripts/admin/promotions.js in spree_promo-1.2.0.rc1
- old
+ new
@@ -1,7 +1,7 @@
var initProductActions = function(){
- $("#add_product_name").product_autocomplete();
+ $(".product_autocomplete").product_autocomplete();
$('.calculator-fields').each(function(){
var $fields_container = $(this);
var $type_select = $fields_container.find('.type-select');
var $settings = $fields_container.find('.settings');