Sha256: 8af8759ecc329258563e322ad2c80f0cc8514e3c5f9331d5513ae4e514866ed1
Contents?: true
Size: 566 Bytes
Versions: 32
Compression:
Stored size: 566 Bytes
Contents
Spree.ready(function() { $('.js-edit-stock-item').each(function() { var $el = $(this); var model = new Spree.Models.StockItem($el.data('stock-item')); new Spree.Views.Stock.EditStockItemRow({ el: $el, stockLocationName: $el.data('stock-location-name'), model: model }); }); $('.js-add-stock-item').each(function() { var $el = $(this) var model = new Spree.Models.StockItem({ variant_id: $el.data('variant-id') }); new Spree.Views.Stock.AddStockItem({ el: $el, model: model }); }); });
Version data entries
32 entries across 32 versions & 2 rubygems