Manually bringing over the login links for checkout

This commit is contained in:
Will Marshall
2014-04-11 12:37:32 +10:00
parent cf3681b934
commit 33cf05ab83
8 changed files with 186 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
Darkswarm.controller "CheckoutCtrl", ($scope, $rootScope, order) ->
Darkswarm.controller "CheckoutCtrl", ($scope, $rootScope, order, $location, $anchorScroll) ->
$scope.require_ship_address = false
$scope.order = order
$scope.userOpen = true
$scope.initialize = ->
# Our shipping_methods comes through as a hash like so: {id: requires_shipping_address}
@@ -25,5 +26,10 @@ Darkswarm.controller "CheckoutCtrl", ($scope, $rootScope, order) ->
event.preventDefault()
checkout.submit()
$scope.scrollTo = (name)->
$location.hash(name);
$anchorScroll();
$scope.userOpen = false
$scope.initialize()