basic version of search implemented

This commit is contained in:
Edin Dazdarevic
2015-03-22 16:16:52 +01:00
parent 38548e3e33
commit 9154d216a2
11 changed files with 305 additions and 11 deletions

View 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;