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
|
// We don't track clicks in oneboxes
|
||||||
// except when we force it with the "track-link" class
|
// 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
|
// Remove the href, put it as a data attribute
|
||||||
if (!$link.data('href')) {
|
if (!$link.data('href')) {
|
||||||
|
|
Loading…
Reference in New Issue