Permalink
Browse files

Fix scrolling issue with FB button.

Thanks to icaaq for the fix.
  • Loading branch information...
1 parent 4aa8530 commit c522d8be4bccc5891c047fb8825d6db7a0b362b8 @pmac pmac committed Jun 5, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 media/socialshare.min.js
  2. +2 −2 src/socialshare.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -18,8 +18,7 @@
' <li><a href="https://twitter.com/share" class="twitter-share-button"></a></li>' +
' </ul>' +
' </div>' +
- '</div>'+
- '<div id="fb-root" aria-hidden="true"></div>';
+ '</div>';
var type;
var providers = {
facebook: {
@@ -113,6 +112,7 @@
},
load_sharing: function() {
if (!this.scripts_loaded) {
+ $('body').append('<div id="fb-root" aria-hidden="true"></div>');
for (var key in providers) {
this.load_script(providers[key].src, providers[key].id);
}

0 comments on commit c522d8b

Please sign in to comment.