mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 17:23:44 +08:00
click tracking broken for AGES
This commit is contained in:
parent
8cf5722301
commit
4f5ed10b83
|
@ -24,7 +24,7 @@ Discourse.ClickTrack = {
|
|||
|
||||
// We don't track clicks in oneboxes
|
||||
// except when we force it with the "track-link" class
|
||||
if ($link.closest('.onebox-result') && !$link.hasClass('track-link')) return true;
|
||||
if ($link.closest('.onebox-result').length > 0 && !$link.hasClass('track-link')) return true;
|
||||
|
||||
// Remove the href, put it as a data attribute
|
||||
if (!$link.data('href')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user