From b411528ac75aae0b682107f72ab97748a088de1e Mon Sep 17 00:00:00 2001 From: Athou Date: Thu, 2 May 2013 12:11:46 +0200 Subject: [PATCH] allow category selection by clicking anywhere on the row --- src/main/webapp/js/directives.js | 4 +++- src/main/webapp/templates/_category.html | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) 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)}} - +