basic version of search implemented
This commit is contained in:
20
front-ui/app/actions/searchActions.js
Normal file
20
front-ui/app/actions/searchActions.js
Normal file
@@ -0,0 +1,20 @@
|
||||
var AppDispatcher = require('../dispatcher/appDispatcher');
|
||||
var SearchContants = require('../constants/searchConstants');
|
||||
|
||||
// Define action methods
|
||||
var SearchActions = {
|
||||
searchBoxChange: function(q) {
|
||||
AppDispatcher.handleAction({
|
||||
actionType: SearchContants.SEARCH_BOX_CHANGE,
|
||||
q : q
|
||||
});
|
||||
},
|
||||
getSearchResults: function(q) {
|
||||
AppDispatcher.handleAction({
|
||||
actionType: SearchContants.GET_SEARCH_RESULTS,
|
||||
q : q
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = SearchActions;
|
||||
Reference in New Issue
Block a user