Adding active boolean and sorting

This commit is contained in:
Will Marshall
2014-04-23 13:22:30 +10:00
parent f5b32ebd3f
commit 8027af2bb7
8 changed files with 34 additions and 33 deletions

View File

@@ -2,10 +2,9 @@ Darkswarm.controller "HubNodeCtrl", ($scope, Navigation, $location, $anchorScrol
$scope.toggle = ->
Navigation.navigate $scope.hub.path
$scope.active = ->
$scope.open = ->
$location.path() == $scope.hub.path
if $scope.active()
console.log "scrolling baby"
if $scope.open()
$anchorScroll()