mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 03:33:58 -06:00
FIX: Can click on links in expanded blog posts
This commit is contained in:
parent
c82313595d
commit
802ee04e9d
@ -85,7 +85,8 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
|
||||
this.get('controller.streamPercentage');
|
||||
|
||||
this.$().on('mouseup.discourse-redirect', '.cooked a, a.track-link', function(e) {
|
||||
if ($(e.target).hasClass('mention')) { return false; }
|
||||
var $target = $(e.target);
|
||||
if ($target.hasClass('mention') || $target.parents('.expanded-embed').length) { return false; }
|
||||
return Discourse.ClickTrack.trackClick(e);
|
||||
});
|
||||
}.on('didInsertElement'),
|
||||
|
Loading…
Reference in New Issue
Block a user