summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-22 18:21:20 +0300
committerAndrew Dolgov <[email protected]>2010-11-22 18:21:20 +0300
commitd99ebc2279687259d74220d12ff6040fa53d1e0b (patch)
treede4fa5e87c09150f3cb0a86d335f100a5c960a9d /viewfeed.js
parentb3009bcdde6e652ba5cd82a12161d6bd573ea155 (diff)
fix twitter button not appearing in tabbed articles
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/viewfeed.js b/viewfeed.js
index f9384fc17..fbcba1489 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);