Sha256: 071476e9b59c3e60edd741a3ec8ca2cfc2b6650bb0ece3c924d0b41549d872b7
Contents?: true
Size: 527 Bytes
Versions: 124
Compression:
Stored size: 527 Bytes
Contents
//= require 'spree/backend/views/state_select' Spree.ready(function() { "use strict"; _.each(document.querySelectorAll('.js-addresses-form'), function(el) { var countrySelect = el.querySelector('.js-country_id'); var model = new Backbone.Model({ country_id: countrySelect.value }); countrySelect.addEventListener('change', function() { model.set({ country_id: countrySelect.value }); }); new Spree.Views.StateSelect({ el: el, model: model }); }); });
Version data entries
124 entries across 124 versions & 2 rubygems