mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
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:
committed by
Neil Williams
parent
411e281c80
commit
0265142711
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user