diaspora/public/javascripts/app/views/post_interactions_view.js
2012-02-22 13:15:54 -08:00

21 lines
521 B
JavaScript

app.views.PostViewerInteractions = app.views.Base.extend({
className : "",
subviews : {
"#post-feedback" : "feedbackView",
"#post-reactions" : "reactionsView"
},
templateName: "post-viewer/interactions",
feedbackView : function() {
if(!window.app.user()) { return null }
return new app.views.PostViewerFeedback({ model : this.model })
},
reactionsView : function() {
if(!window.app.user()) { return null }
return new app.views.PostViewerReactions({ model : this.model })
}
})