- browsing by subcategory
This commit is contained in:
30
front-ui/app/actions/bySubCategoryActions.js
Normal file
30
front-ui/app/actions/bySubCategoryActions.js
Normal 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;
|
||||
Reference in New Issue
Block a user