finished menu items

This commit is contained in:
Edin Dazdarevic
2015-03-28 13:59:04 +01:00
parent b90b4035aa
commit 1e256f728d
7 changed files with 227 additions and 3 deletions

View File

@@ -91,6 +91,19 @@ var NavigationActions = {
actionType: NavigationConstants.CHANGE_URL,
url: '/pretraga?q=' + q
});
},
goToMenuItem: function(menuItem) {
var url = '';
if (menuItem.get) {
url = menuItem.get('url');
} else {
url = menuItem.url;
}
AppDispatcher.handleAction({
actionType: NavigationConstants.CHANGE_URL,
url: url
});
}
};