mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
19 lines
475 B
CoffeeScript
19 lines
475 B
CoffeeScript
Darkswarm.controller "CheckoutCtrl", ($scope, Order, storage) ->
|
|
$scope.order = $scope.Order = Order
|
|
|
|
storage.bind $scope, "user", { defaultValue: true}
|
|
$scope.disable = ->
|
|
$scope.user = false
|
|
$scope.details = true
|
|
console.log $scope.details
|
|
|
|
storage.bind $scope, "details"
|
|
storage.bind $scope, "billing"
|
|
storage.bind $scope, "shipping"
|
|
storage.bind $scope, "payment"
|
|
|
|
|
|
$scope.purchase = (event)->
|
|
event.preventDefault()
|
|
checkout.submit()
|