Skip to content
New issue

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

Multiple ajax requests - adjust buttons only inside a div? #218

Open
jsmoriss opened this issue Sep 16, 2018 · 0 comments
Open

Multiple ajax requests - adjust buttons only inside a div? #218

jsmoriss opened this issue Sep 16, 2018 · 0 comments

Comments

@jsmoriss
Copy link
Contributor

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.

@jsmoriss jsmoriss changed the title Multiple ajax requests - adjust buttons for a div? Multiple ajax requests - adjust buttons only inside a div? Sep 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant