From d6ed9848a9882988412b0dc6bc4310e4a5ab71cb Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 7 Apr 2016 16:18:10 +1000 Subject: [PATCH] FIX: clicking on post count not showing date range widget --- .../javascripts/discourse/views/topic-list-item.js.es6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/views/topic-list-item.js.es6 b/app/assets/javascripts/discourse/views/topic-list-item.js.es6 index cf550a204ae..a7a158bc3f9 100644 --- a/app/assets/javascripts/discourse/views/topic-list-item.js.es6 +++ b/app/assets/javascripts/discourse/views/topic-list-item.js.es6 @@ -84,9 +84,12 @@ export default Ember.View.extend(StringBuffer, { click(e) { let target = $(e.target); - if (target.hasClass('posts-map')) { + if (target.hasClass('posts-map') || target.parents('.posts-map').length > 0) { if (target.prop('tagName') !== 'A') { target = target.find('a'); + if (target.length===0) { + target = target.end(); + } } this.container.lookup('controller:application').send("showTopicEntrance", {topic: this.get('topic'), position: target.offset()}); return false;