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

Close expanded text by clicking something else #52

Closed
mtaylor314 opened this issue Nov 20, 2012 · 2 comments
Closed

Close expanded text by clicking something else #52

mtaylor314 opened this issue Nov 20, 2012 · 2 comments

Comments

@mtaylor314
Copy link

I don't like putting this under "Issues," but not sure where else it should go. I have a situation that has me showing various collapsed blocks in different locations on the screen (sometimes even off screen). I would like to know if there is a way, or ask for the functionality, to collapse anything that is expanded, based on any event.

So if a user clicks something, hovers over something, etc, I can call the collapse method to ensure all expanded blocks are collapsed.

@kswedberg
Copy link
Owner

If the lessClass option is the same for all of the expanded blocks, you could probably just do, for example, $('. read-less').trigger('click'); inside the other event handler. Make sense?

@kswedberg
Copy link
Owner

Closing this issue. If my above comment doesn't do the trick for you, let me know and I'll reopen.

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

2 participants