diaspora/app/assets/javascripts/app/views/photo_view.js
2014-12-01 00:36:56 +01:00

27 lines
588 B
JavaScript

// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
app.views.Photo = app.views.Base.extend({
templateName: "photo",
className : "photo loaded",
events: {
"click .remove_post": "destroyModel"
},
tooltipSelector : ".block_user, .delete",
initialize : function() {
$(this.el).attr("id", this.model.get("guid"));
return this;
},
presenter : function() {
return _.extend(this.defaultPresenter(), {
authorIsCurrentUser : app.currentUser.isAuthorOf(this.model),
});
}
});
// @license-end