2015-01-25 10:26:10 +01:00
|
|
|
var AppDispatcher = require('../dispatcher/appDispatcher');
|
|
|
|
|
var ItemConstants = require('../constants/itemConstants');
|
|
|
|
|
|
|
|
|
|
// Define action methods
|
|
|
|
|
var ItemActions = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
loadFrontPageItems: function() {
|
|
|
|
|
AppDispatcher.handleAction({
|
|
|
|
|
actionType: ItemConstants.LOAD_FOR_FRONTPAGE
|
|
|
|
|
})
|
2015-01-28 05:04:45 +01:00
|
|
|
},
|
2015-01-25 10:26:10 +01:00
|
|
|
|
2015-01-28 05:04:45 +01:00
|
|
|
loadItemWithDetails: function() {
|
|
|
|
|
AppDispatcher.handleAction({
|
|
|
|
|
actionType: ItemConstants.LOAD_ITEM_WITH_DETAILS,
|
|
|
|
|
})
|
|
|
|
|
}
|
2015-01-25 10:26:10 +01:00
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
module.exports = ItemActions;
|