From 4a529b592a35a31362063b0d80ebb41b6c36657a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 23 Nov 2010 11:58:43 +0300 Subject: [PATCH] properly enable tweet buttons on infloaded headlines --- viewfeed.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/viewfeed.js b/viewfeed.js index fbcba1489..7fe83b42e 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -143,6 +143,10 @@ function headlines_callback2(transport, feed_cur_page) { c.attr('content', c.attr('content') + headlines_content.firstChild.nodeValue); + $$("#headlines-frame a.twitter-share-button").each( + function(btn) { var tbtn = new twttr.TweetButton(btn); + tbtn.render(); }); + console.log("restore selected ids: " + ids); for (var i = 0; i < ids.length; i++) {