- browsing by subcategory

This commit is contained in:
Edin Dazdarevic
2015-03-29 23:23:21 +02:00
parent 8e3557cf2e
commit 7c1eb2f4fd
12 changed files with 349 additions and 10 deletions

View File

@@ -0,0 +1,30 @@
var AppDispatcher = require('../dispatcher/appDispatcher');
var BySubCategoryConstants = require('../constants/bySubCategoryConstants');
// Define action methods
var BySubCategoryActions = {
load: function(subCategoryId, offset, limit, filter) {
AppDispatcher.handleAction({
actionType: BySubCategoryConstants.LOAD,
subCategoryId : subCategoryId,
offset: offset,
limit: limit,
filter: filter
});
},
filterCriteriaClick: function(fc, fcv) {
AppDispatcher.handleAction({
actionType: BySubCategoryConstants.FILTER_CRITERIA_CLICK,
fc: fc,
fcv: fcv
});
},
removeAppliedFilter: function(name) {
AppDispatcher.handleAction({
actionType: BySubCategoryConstants.REMOVE_APPLIED_FILTER,
name: name
});
},
};
module.exports = BySubCategoryActions;