]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix twitter button not appearing in tabbed articles
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 22 Nov 2010 15:21:20 +0000 (18:21 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 22 Nov 2010 15:21:20 +0000 (18:21 +0300)
viewfeed.js

index f9384fc1718978345a804dda75c8308d9b0c70f5..fbcba1489aa5cd1b4cae12ff47e8ff5adca8e7be 100644 (file)
@@ -1734,6 +1734,9 @@ function zoomToArticle(event, id) {
        
                        dijit.byId("content-tabs").addChild(article_pane);
 
+                       $$("#ATAB-"+id+" a.twitter-share-button").each(
+                                       function(btn) { var tbtn = new twttr.TweetButton(btn); tbtn.render(); });
+
                        if (!event || !event.shiftKey)
                                dijit.byId("content-tabs").selectChild(article_pane);
 
@@ -1765,6 +1768,10 @@ function zoomToArticle(event, id) {
        
                                                dijit.byId("content-tabs").addChild(article_pane);
 
+                                               $$("#ATAB-"+id+" a.twitter-share-button").each(
+                                                       function(btn) { var tbtn = new twttr.TweetButton(btn); 
+                                                               tbtn.render(); });
+
                                                if (!event || !event.shiftKey)
                                                        dijit.byId("content-tabs").selectChild(article_pane);