diff --git a/src/main/webapp/js/directives.js b/src/main/webapp/js/directives.js index 66f14c0b..ec4e4915 100644 --- a/src/main/webapp/js/directives.js +++ b/src/main/webapp/js/directives.js @@ -186,7 +186,9 @@ module.directive('category', [ function() { }); }; - $scope.toggleCategory = function(category) { + $scope.toggleCategory = function(category, event) { + event.preventDefault(); + event.stopPropagation(); category.expanded = !category.expanded; if (category.id == 'all') { return; diff --git a/src/main/webapp/templates/_category.html b/src/main/webapp/templates/_category.html index 99b1452e..8fe2d58d 100644 --- a/src/main/webapp/templates/_category.html +++ b/src/main/webapp/templates/_category.html @@ -5,14 +5,14 @@ - - - - - + + + + + {{formatCategoryName(node)}} - +