Moving empties cart to a magic directive

This commit is contained in:
Will Marshall
2014-05-15 14:47:16 +10:00
parent eae12da24a
commit c0ba560fa6
4 changed files with 23 additions and 24 deletions

View File

@@ -8,12 +8,5 @@ Darkswarm.controller "HubNodeCtrl", ($scope, HashNavigation, Navigation, $locati
$scope.current = ->
$scope.hub.id is CurrentHub.id
$scope.emptiesCart = ->
CurrentHub.id isnt undefined and !$scope.current()
$scope.changeHub = ->
if confirm "Are you sure? This will change your selected Hub and remove any items in you shopping cart."
Navigation.go $scope.hub.path
if $scope.open()
$anchorScroll()