Links added to the DOM, properly tagged for Socialite, would not be
re-parsed as buttons by the Pinterest script. This commit adds a
'data-pin-build' attribute to the pinit.js script tag to expose the
parsePinBtns() function and replaces the reloadNetwork call with a call
to this function.
I am currently using my modified code at http://tilearray.com to change Pinterest button properties when a mosaic's owner makes changes via an AJAX call. To demo:
Visit the site and make a mosaic
Click the Pinterest button to begin a share
Close the window without sharing
Add a title for your mosaic
Click the Pinterest button again
Let me know if I'm not doing something "the Socialite way". :-)
Links added to the DOM, properly tagged for Socialite, would not be re-parsed as buttons by the Pinterest script. This commit adds a 'data-pin-build' attribute to the pinit.js script tag to expose the parsePinBtns() function and replaces the reloadNetwork call with a call to this function.
I am currently using my modified code at http://tilearray.com to change Pinterest button properties when a mosaic's owner makes changes via an AJAX call. To demo:
Let me know if I'm not doing something "the Socialite way". :-)