kni-labs/rrssb

Multiple ajax requests - adjust buttons only inside a div?

jsmoriss opened this issue · 0 comments

Hey guys,

I'm using the buttons in a BuddyPress activity loop. They recently switched to ajax calls to fetch the content of each activity, and each activity content includes a set of RRSSB buttons (to share that specific activity). The buttons used to resize fine when it was a single page load, but now that each activity content (and set of buttons) is fetched individually by ajax, the buttons no longer resize.

I cannot call rrssbInit in the result of each ajax call, as that just kills the browser. :-/ Is there a way to apply the button resize function to a container? Say a DIV with a unique CSS ID?

Thanks,

js.