FIX: clicking on post count not showing date range widget

This commit is contained in:
Sam 2016-04-07 16:18:10 +10:00
parent fe54ece35e
commit d6ed9848a9
1 changed files with 4 additions and 1 deletions

View File

@ -84,9 +84,12 @@ export default Ember.View.extend(StringBuffer, {
click(e) { click(e) {
let target = $(e.target); 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') { if (target.prop('tagName') !== 'A') {
target = target.find('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()}); this.container.lookup('controller:application').send("showTopicEntrance", {topic: this.get('topic'), position: target.offset()});
return false; return false;