FIX: clicking on post count not showing date range widget
This commit is contained in:
parent
fe54ece35e
commit
d6ed9848a9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue