Issue #540 Fix up hub list navigation

This commit is contained in:
Rick Giner
2015-05-10 18:13:30 +10:00
parent 98c1a95bd1
commit b7c1a43125
3 changed files with 21 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
Darkswarm.controller "HubNodeCtrl", ($scope, HashNavigation, Navigation, $location, $templateCache, CurrentHub) ->
$scope.toggle = ->
HashNavigation.toggle $scope.hub.hash
$scope.toggle = (e) ->
HashNavigation.toggle $scope.hub.hash if !angular.element(e.target).inheritedData('is-link')
$scope.open = ->
HashNavigation.active $scope.hub.hash