From d99ebc2279687259d74220d12ff6040fa53d1e0b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Nov 2010 18:21:20 +0300 Subject: [PATCH] fix twitter button not appearing in tabbed articles --- viewfeed.js | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.39.5