Adding the last checkout distributor to the account link

This commit is contained in:
Will Marshall
2014-03-28 15:43:28 +11:00
parent 197f1cfa72
commit 6f50c45bba
3 changed files with 16 additions and 3 deletions

View File

@@ -7,3 +7,10 @@ window.AccountSidebarCtrl = Darkswarm.controller "AccountSidebarCtrl", ($scope,
$scope.select = ->
Navigation.navigate($scope.path)
$scope.emptyCart = (href, ev)->
console.log href
if $(ev.delegateTarget).hasClass "empties-cart"
location.href = href if confirm "Changing your collection date will clear your cart."
else
location.href = href