Sha256: bd39d776f4903500eb42a2b4a4725cfea664ec20e2629e94f570768b8a368f51

Contents?: true

Size: 549 Bytes

Versions: 5

Compression:

Stored size: 549 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

5 entries across 5 versions & 1 rubygems

Version Path
solidus_backend-2.2.2 app/views/spree/admin/promotion_rules/create.js.erb
solidus_backend-2.2.1 app/views/spree/admin/promotion_rules/create.js.erb
solidus_backend-2.2.0 app/views/spree/admin/promotion_rules/create.js.erb
solidus_backend-2.2.0.rc1 app/views/spree/admin/promotion_rules/create.js.erb
solidus_backend-2.2.0.beta1 app/views/spree/admin/promotion_rules/create.js.erb