Sha256: 6ceb75c0b62e8cc57e9cecf0aa63e7aef2dfb22775b68ba472e2c5c40e6669a4

Contents?: true

Size: 434 Bytes

Versions: 4

Compression:

Stored size: 434 Bytes

Contents

//= require spree/backend

// spree's version only handles 'input', not 'select', and this breaks solidus_volume_pricing

$(function () {
  $('#add_volume_price').click( function() {
    var target = $(this).data("target"),
      new_table_row = $(target + ' tr:visible:first');
    new_table_row.find('div.select2').remove();
    $('select.select2').select2({
      allowClear: true,
      dropdownAutoWidth: true
    });
  });

});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_volume_pricing-0.2.1 app/assets/javascripts/spree/backend/solidus_volume_pricing.js
solidus_volume_pricing-0.1.1 app/assets/javascripts/spree/backend/solidus_volume_pricing.js
solidus_volume_pricing-0.2.0 app/assets/javascripts/spree/backend/solidus_volume_pricing.js
solidus_volume_pricing-0.1.0 app/assets/javascripts/spree/backend/solidus_volume_pricing.js