view now gets item with details

This commit is contained in:
Senad Uka
2015-01-24 09:44:43 +01:00
parent f5eca4a758
commit 64fb9a4ee5
8 changed files with 53 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ var StartPageItemsView = Backbone.View.extend({
//alert('StartPageItemsView init');
},
render: function() {
this.$el.append(this.template);
this.$el.html(this.template);
var items = new ItemCollection();
items.setClassificationType(0);
items.setLimit(30);
@@ -32,9 +32,10 @@ var StartPageItemsView = Backbone.View.extend({
},
itemClick: function(item) {
// not sure if there is a better way to access the app object
// TODO: if found replace it !
RIBICA.App.router.navigate(item.getFrontEndUrl(), {'trigger': true});
}
});