Files
old-ribica/front-ui/app/actions/bySubCategoryActions.js
2015-03-29 23:23:21 +02:00

31 lines
930 B
JavaScript

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;