Make analytics selector more selective.

Promote_Graph rows use 'promotedlink' and 'promoted' classes to get
the same styling as promoted links. Their destination urls were getting
rewritten by analytics.js which was treating them as real promoted links.
This commit is contained in:
Brian Simpson
2013-09-18 15:22:59 -04:00
committed by Neil Williams
parent 411e281c80
commit 0265142711

View File

@@ -5,7 +5,7 @@ r.analytics = {
init: function() {
// these guys are relying on the custom 'onshow' from jquery.reddit.js
$(document).delegate(
'.promotedlink.promoted',
'.promotedlink.promoted:not(.blob)',
'onshow',
_.bind(function(ev) {
this.fetchTrackersOrFirePixel(ev.target)