fix twitter button not appearing in tabbed articles

This commit is contained in:
Andrew Dolgov 2010-11-22 18:21:20 +03:00
parent b3009bcdde
commit d99ebc2279
1 changed files with 7 additions and 0 deletions

View 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);