diff --git a/jquery.sharrre.js b/jquery.sharrre.js index f52c754..cb6b00d 100644 --- a/jquery.sharrre.js +++ b/jquery.sharrre.js @@ -253,7 +253,7 @@ }, pinterest : function(self){ var sett = self.options.buttons.pinterest; - $(self.element).find('.buttons').append('
Pin It
'); + $(self.element).find('.buttons').append('
Pin It
'); (function() { var li = document.createElement('script');li.type = 'text/javascript';li.async = true; @@ -379,6 +379,9 @@ if(typeof $(this.element).data('text') !== 'undefined'){ this.options.text = $(this.element).data('text'); } + if(typeof $(this.element).data('media') !== 'undefined'){ + this.options.media = $(this.element).data('media'); + } //how many social website have been selected $.each(this.options.share, function(name, val) {