From: Andrew Dolgov Date: Tue, 23 Nov 2010 08:58:43 +0000 (+0300) Subject: properly enable tweet buttons on infloaded headlines X-Git-Tag: 1.5.0~60 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4a529b592a35a31362063b0d80ebb41b6c36657a;p=tt-rss.git properly enable tweet buttons on infloaded headlines --- diff --git a/viewfeed.js b/viewfeed.js index fbcba148..7fe83b42 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++) {