We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi guys again ...
Seems that : encodeURIComponent(this.settings.media) and encodeURIComponent(this.settings.description) , are not getting the correct data .
encodeURIComponent(this.settings.media)
encodeURIComponent(this.settings.description)
In my basic knowledge I needed to add data-media so I can do the next implementation:
$(shareElement).each(function(i) { var lnk = $(this).attr('data-url'), txt = $(this).attr('data-text'), media = $(this).attr('data-media'), resTxt = encodeURIComponent(txt), resLnk = encodeURIComponent(lnk), resMedia = encodeURIComponent(media); $(this).sharrre({ share: { facebook: true, twitter: true, pinterest: true, }, template: '<ul class="box"><!--<li> <h2>{total}<small>Compartido</small> </h2> </li>--><li id="facebook"><i class="fa fa-facebook"></i></li><li id="twitter"><i class="fa fa-twitter"></i></li><li id="pinterest"><i class="fa fa-pinterest"></i></li></ul>', enableHover: false, enableTracking: false, buttons: { facebook: { layout: 'button', send: true }, twitter: { via: 'robbreportmx', }, pinterest: { url:''+ lnk + '', media: ''+ media + '', description: ''+ txt + '' } }, render: function(api, options) { $(api.element).on('click', '#twitter', function() { api.openPopup('twitter'); return false; }); $(api.element).on('click', '#facebook', function() { api.openPopup('facebook'); return false; }); $(api.element).on('click', '#pinterest', function() { api.openPopup('pinterest'); return false; }); } }); });
Thank you
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi guys again ...
Seems that :
encodeURIComponent(this.settings.media)
andencodeURIComponent(this.settings.description)
, are not getting the correct data .In my basic knowledge I needed to add data-media so I can do the next implementation:
Thank you
The text was updated successfully, but these errors were encountered: