From a1b9250865ebf7757494f2974b1ecfa245541e66 Mon Sep 17 00:00:00 2001 From: Edin Dazdarevic Date: Wed, 18 Mar 2015 18:22:21 +0100 Subject: [PATCH] subcategories should not show in the menu --- .../components/shared/sectionsListComponent.js | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/front-ui/app/components/shared/sectionsListComponent.js b/front-ui/app/components/shared/sectionsListComponent.js index 419ffb8..e917141 100644 --- a/front-ui/app/components/shared/sectionsListComponent.js +++ b/front-ui/app/components/shared/sectionsListComponent.js @@ -39,12 +39,12 @@ var SectionsListComponent = React.createClass({ onSectionClick: function(section) { SectionActions.unsetSectionHover(); NavigationActions.goToSection(section); - return false; + event.preventDefault(); }, onCategoryClick: function(category, section) { SectionActions.unsetSectionHover(); NavigationActions.goToCategory(new Category(category), section); - return false; + event.preventDefault(); }, onSubcategoryClick: function(subcategory) { // implement in navigation actions @@ -77,19 +77,7 @@ var SectionsListComponent = React.createClass({ {section.get('categories').map(function(category) { return (
  • - {category.name} - + {category.name}
  • ) })}