Files
openfoodnetwork/app/assets/javascripts/darkswarm/controllers/checkout_controller.js.coffee
2014-02-14 11:31:27 +11:00

6 lines
303 B
CoffeeScript

angular.module("Checkout").controller "CheckoutCtrl", ($scope, $rootScope) ->
$scope.require_ship_address = false
$scope.shipping_method = -1
$scope.shippingMethodChanged = ->
$scope.require_ship_address = $("#order_shipping_method_" + $scope.shipping_method).attr("data-require-ship-address")