This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/views/embedded_post_view.js

14 lines
393 B
JavaScript

(function() {
window.Discourse.EmbeddedPostView = Ember.View.extend({
templateName: 'embedded_post',
classNames: ['reply'],
didInsertElement: function() {
var postView;
postView = this.get('postView') || this.get('parentView.postView');
return postView.get('screenTrack').track(this.get('elementId'), this.get('post.post_number'));
}
});
}).call(this);