1
0
Fork 0
arangodb/html/admin/js/views/foxxActiveView.js

24 lines
562 B
JavaScript

window.FoxxActiveView = Backbone.View.extend({
tagName: 'li',
className: "span3",
template: new EJS({url: 'js/templates/foxxActiveView.ejs'}),
events: {
'click .icon-edit': 'editFoxx'
},
initialize: function(){
_.bindAll(this, 'render');
},
editFoxx: function(event) {
event.stopPropagation();
window.App.navigate("application/installed/" + encodeURIComponent(this.model.get("_key")), {trigger: true});
},
render: function(){
$(this.el).html(this.template.render(this.model));
return $(this.el);
}
});