From fb0b2ebf8471e3070b824f53475b641c515a128b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 25 Dec 2012 18:04:29 +0400 Subject: [PATCH] try to parse new headline elements after they have been deduplicated --- js/viewfeed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index 02dde365..643937ec 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -120,8 +120,6 @@ function headlines_callback2(transport, offset, background, infscroll_req) { $("headlines-tmp").innerHTML = reply['headlines']['content']; - dojo.parser.parse('headlines-tmp'); - var hsp = $("headlines-spacer"); if (hsp) @@ -164,6 +162,8 @@ function headlines_callback2(transport, offset, background, infscroll_req) { initHeadlinesMenu(); new_elems.each(function(child) { + dojo.parser.parse(child); + if (!Element.visible(child)) new Effect.Appear(child, { duration : 0.5 }); }); -- 2.39.5