mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
14 lines
411 B
CoffeeScript
14 lines
411 B
CoffeeScript
Darkswarm.controller "CheckoutCtrl", ($scope, $rootScope, Order, storage) ->
|
|
$scope.order = $scope.Order = Order
|
|
|
|
# Binding accordion panel states to local storage
|
|
storage.bind $scope, "user"
|
|
storage.bind $scope, "details"
|
|
storage.bind $scope, "billing"
|
|
storage.bind $scope, "shipping"
|
|
storage.bind $scope, "payment"
|
|
|
|
$scope.purchase = (event)->
|
|
event.preventDefault()
|
|
checkout.submit()
|