Sha256: a79e7ec1ca39f82f0c2d105daeb78411eb4d44247ed0ef0e7161b3f335a5e78d

Contents?: true

Size: 555 Bytes

Versions: 4

Compression:

Stored size: 555 Bytes

Contents

$('#rules').append('<%= escape_javascript( render(:partial => 'spree/admin/promotions/promotion_rule', :object => @promotion_rule) ) %>');
$('#rules .no-objects-found').hide();

$('.product_picker').productAutocomplete();
$('.user_picker').userAutocomplete();
$('.taxon_picker').taxonAutocomplete();

$('select.select2').select2({
  allowClear: true,
  dropdownAutoWidth: true,
  minimumResultsForSearch: 8
});

$('#promotion_rule_type').html('<%= escape_javascript options_for_promotion_rule_types(@promotion) %>');
$('#promotion_rule_type').select2();

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_backend-2.1.1 app/views/spree/admin/promotion_rules/create.js.erb
solidus_backend-2.1.0 app/views/spree/admin/promotion_rules/create.js.erb
solidus_backend-2.1.0.rc1 app/views/spree/admin/promotion_rules/create.js.erb
solidus_backend-2.1.0.beta1 app/views/spree/admin/promotion_rules/create.js.erb