refactoring working, will need to reorganize stuff a little bit

This commit is contained in:
Edin Dazdarevic
2015-01-25 12:52:31 +01:00
parent 2ad4e4a766
commit 769230eda1
12 changed files with 83 additions and 142 deletions

View File

@@ -71,12 +71,12 @@ AppDispatcher.register(function(payload) {
switch(action.actionType) {
// Respond to SELECT_ITEM action
case ItemConstants.SELECT_ITEM:
setSelected(action.item.id);
// TODO: this does not belong here - update when react router becommes available
RIBICA.App.router.navigate(action.item.getFrontEndUrl(), {'trigger': true});
/* case ItemConstants.SELECT_ITEM:*/
//setSelected(action.item.id);
//// TODO: this does not belong here - update when react router becommes available
//RIBICA.App.router.navigate(action.item.getFrontEndUrl(), {'trigger': true});
break;
/*break;*/
case ItemConstants.LOAD_FOR_FRONTPAGE:
loadItemsForFrontpage();
@@ -92,4 +92,4 @@ AppDispatcher.register(function(payload) {
});
module.exports = ItemStore;
module.exports = ItemStore;