From 7132efa249263fd61b6f82005994c092ffad19e5 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Fri, 24 May 2013 14:42:20 -0700 Subject: [PATCH] Ensure that promoted link trackers are fetched in bare page loads. --- r2/r2/public/static/js/ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/r2/r2/public/static/js/ui.js b/r2/r2/public/static/js/ui.js index 23bfc7366..c76413c2c 100644 --- a/r2/r2/public/static/js/ui.js +++ b/r2/r2/public/static/js/ui.js @@ -70,7 +70,10 @@ r.ui.refreshListing = function() { url: url.attr('base') + url.attr('path'), data: params }).done(function(resp) { - $('body > .content').html(resp) + $('body > .content') + .html(resp) + .find('.promotedlink.promoted:visible') + .trigger('onshow') }) }