Files
old-ribica/front-ui/app/actions/bySubCategoryActions.js

37 lines
1.1 KiB
JavaScript
Raw Normal View History

2015-03-29 23:23:21 +02:00
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
});
},
changePage: function(page) {
AppDispatcher.handleAction({
actionType: BySubCategoryConstants.CHANGE_PAGE,
page: page
});
2015-03-29 23:23:21 +02:00
},
};
module.exports = BySubCategoryActions;