-
Notifications
You must be signed in to change notification settings - Fork 7
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
Implement the "destroy" #6
Comments
I see, so this is happening because you are calling gridNav on a list that is already over the gridnav effects. I think you'll be able to fix this by checking if your "gridnav container" is already on gridnav effects. Anyway I'll look into it. Thanks for reporting. :) |
If I do this, there's still a problem. As I told, I'm using fadeOut. FadeOut and slideOut makes the (parent of the gridNav) disappear with "display:none" after the animation (jquery default behaviour). Then, gridNav tries to continues all the animation but don't catch the elements anymore because of this "display:none". When the tab is clicked again, nothing happens. The parent
with "display:block" is just visually empty.
There's a working around... not so good... . It's not so good because:
Well...that's it... I'm still trying some things with gridNav here but I'm not so good with jquery plugin programming... I'm just a designer... =/ |
I just have 3 tabs with ajax providing the content. I call gridNav when one of this tabs is clicked (with fading out the old content and fading in the new one).
When the another two is clicked, that's ok. But when I click on the first one again, the gridNav is misconfigured (all columns occupying the first position).
I think this is because the gridNav doesn't have a "destroy".
So... that's it:
When I click on the tabs, I need to call gridNav again after the fadeIn(). But when I click on another tab, I think I need to "destroy" after the fadeOut()... So, stop the plugin and start again only when I click on another tab, getting the content on the server and, then, fading in that content.
This will be useful for dynamic/ajax contents.
.
The text was updated successfully, but these errors were encountered: