cleaned up ugly url code

This commit is contained in:
Edin Dazdarevic
2015-02-07 18:16:21 +01:00
parent 280a2e2edb
commit 7770e59b81
5 changed files with 18 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
var React = require('react'),
SectionCollection = require('../../models/sectionCollection'),
Section = require('../../models/section'),
Category = require('../../models/category'),
Backbone = require('backbone'),
NavigationStore = require('../../stores/navigationStore'),
SectionStore = require('../../stores/sectionStore'),
@@ -37,7 +38,7 @@ var SectionsListComponent = React.createClass({
return false;
},
onCategoryClick: function(category, section) {
NavigationActions.goToCategory(category, section);
NavigationActions.goToCategory(new Category(category), section);
return false;
},
onSubcategoryClick: function(subcategory) {