click tracking broken for AGES

This commit is contained in:
Sam 2013-04-22 10:00:17 +10:00
parent 8cf5722301
commit 4f5ed10b83
1 changed files with 1 additions and 1 deletions

View File

@ -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')) {