This commit is contained in:
Steve Pettitt
2016-01-10 07:58:04 +00:00
parent 81b688f0e8
commit 262a8e75f9
3 changed files with 9 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
Darkswarm.controller "DistributorNodeCtrl", ($scope, HashNavigation, $anchorScroll) ->
$scope.toggle = ->
HashNavigation.toggle $scope.distributor.id
HashNavigation.toggle $scope.distributor.hash
$scope.open = ->
HashNavigation.active($scope.distributor.id)
HashNavigation.active($scope.distributor.hash)
if $scope.open()
$anchorScroll()