Sha256: 504e4f384a8f304918eff7f3ecfc4dba595ca2779bfcb6f0bb219e73aa3bdef8
Contents?: true
Size: 1.29 KB
Versions: 4
Compression:
Stored size: 1.29 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"!spree/backend/adjustments.js; FI" pathname; TI"w/usr/local/rvm/gems/ruby-2.1.2/gems/spree_backend-2.2.4/app/assets/javascripts/spree/backend/adjustments.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+TI"length; Ti2I"digest; TI"%553693a97ab92455beffe45cf68552ad; FI"source; TI"2(function() { $(this).ready(function() { return $('[data-hook=adjustments_new_coupon_code] #add_coupon_code').click(function() { if ($("#coupon_code").val().length === 0) { return; } return $.ajax({ type: 'PUT', url: Spree.url(Spree.routes.orders_api + '/' + order_number + '/apply_coupon_code.json'), data: { coupon_code: $("#coupon_code").val() }, 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); ; TI"required_assets_digest; TI"%372e7541427cbf72be82774becbed546; FI" _version; TI"%5ef14a844324cba3e114bd0123f88a5e; F
Version data entries
4 entries across 2 versions & 1 rubygems