cleaned up ugly url code
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user