Adding the 'same as billing address' JS

This commit is contained in:
Will Marshall
2014-03-05 12:29:49 +11:00
parent 66866f09b5
commit 19350eeade
3 changed files with 73 additions and 29 deletions

View File

@@ -2,6 +2,7 @@ angular.module("Checkout").controller "CheckoutCtrl", ($scope, $rootScope) ->
$scope.require_ship_address = false
$scope.shipping_method = -1
$scope.payment_method = -1
$scope.same_as_billing = true
$scope.shippingMethodChanged = ->
$scope.require_ship_address = $("#order_shipping_method_id_" + $scope.shipping_method).attr("data-require-ship-address")