thinking about it .. WE ALWAYS track external links. WE DON'T display external link counts inside oneboxes.

Reverting to old behavior so we can fix properly
This commit is contained in:
Sam 2013-04-22 10:42:12 +10:00
parent 4f5ed10b83
commit fd035cf777
1 changed files with 0 additions and 4 deletions

View File

@ -22,10 +22,6 @@ Discourse.ClickTrack = {
// We don't track clicks on quote back buttons
if ($link.hasClass('back') || $link.hasClass('quote-other-topic')) return true;
// We don't track clicks in oneboxes
// except when we force it with the "track-link" class
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')) {
$link.addClass('no-href');