diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-30 23:51:15 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-30 23:51:15 -0500 |
| commit | 848730bdbc1e1b2c81274385d85fd385422323d8 (patch) | |
| tree | 1e60722135d553860a4e57b653198fe547883475 /StoneIsland/www/js/lib/cart/CartShipping.js | |
| parent | 2c063f920983c2b8b4584a21471c70521a391009 (diff) | |
use_stored_credit_card
Diffstat (limited to 'StoneIsland/www/js/lib/cart/CartShipping.js')
| -rw-r--r-- | StoneIsland/www/js/lib/cart/CartShipping.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/cart/CartShipping.js b/StoneIsland/www/js/lib/cart/CartShipping.js index 9b8205c1..ec9394da 100644 --- a/StoneIsland/www/js/lib/cart/CartShipping.js +++ b/StoneIsland/www/js/lib/cart/CartShipping.js @@ -5,6 +5,7 @@ var CartShipping = FormView.extend({ action: sdk.cart.set_shipping_address, list_mode: true, + data: {}, template: $("#cart_shipping .template").html(), @@ -84,7 +85,7 @@ var CartShipping = FormView.extend({ }) if (this.list_mode) { - address_id = $("[name=AddressId]").filter(function(){ return $(this).prop("checked") }).val() + address_id = this.$("[name=AddressId]").filter(function(){ return $(this).prop("checked") }).val() address_data = app.account.addressLookup[ address_id ] } else { @@ -103,6 +104,8 @@ var CartShipping = FormView.extend({ shipping_info.Region = address_data.Province shipping_info.CountryCode = CANADIAN_LOOKUP[ address_data.Province ] ? "CA" : "US" + this.data = shipping_info + return shipping_info }, |
