Files
discourse/app/assets/javascripts/discourse/components/featured-topic.js.es6
2016-11-15 16:44:50 -05:00

12 lines
325 B
JavaScript

export default Ember.Component.extend({
classNameBindings: [':featured-topic'],
click(e) {
const $target = $(e.target);
if ($target.closest('.last-posted-at').length) {
this.appEvents.trigger('topic-entrance:show', {topic: this.get('topic'), position: $target.offset()});
return false;
}
}
});