From: Andrew Dolgov Date: Mon, 22 Nov 2010 15:21:20 +0000 (+0300) Subject: fix twitter button not appearing in tabbed articles X-Git-Tag: 1.5.0~66 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d99ebc2279687259d74220d12ff6040fa53d1e0b;p=tt-rss.git fix twitter button not appearing in tabbed articles --- diff --git a/viewfeed.js b/viewfeed.js index f9384fc1..fbcba148 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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);