Sha256: bb28b9abd00768def747596b15943319f156e11e0c9605d6518eae2deb307899
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 Bytes
Contents
I"/(function() { $(this).ready(function() { return $('[data-hook=adjustments_new_coupon_code] #add_coupon_code').click(function() { if ($("#coupon_code").val().length === 0) { return; } return Spree.ajax({ type: 'PUT', url: Spree.routes.apply_coupon_code(order_number), data: { coupon_code: $("#coupon_code").val(), token: Spree.api_key }, success: function() { return window.location.reload(); }, error: function(msg) { if (msg.responseJSON["error"]) { return show_flash('error', msg.responseJSON["error"]); } else { return show_flash('error', "There was a problem adding this coupon code."); } } }); }); }); }).call(this); :ET
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alchemy-solidus-2.2.0 | spec/dummy/tmp/cache/assets/sprockets/v3.0/1J/1Jm2KBsUUmoxCAZDKox81M74bYE4kTtxrRCnmtWppiQ.cache |