]> git.wh0rd.org Git - tt-rss.git/commitdiff
properly enable tweet buttons on infloaded headlines
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 23 Nov 2010 08:58:43 +0000 (11:58 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 23 Nov 2010 08:58:43 +0000 (11:58 +0300)
viewfeed.js

index fbcba1489aa5cd1b4cae12ff47e8ff5adca8e7be..7fe83b42e012e6838cede4145b44f0b56b2d465f 100644 (file)
@@ -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++) {