view now gets item with details
This commit is contained in:
@@ -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});
|
||||
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user