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

tocify reset the active class in navbar #9

Closed
linuxonrails opened this issue Dec 13, 2012 · 2 comments
Closed

tocify reset the active class in navbar #9

linuxonrails opened this issue Dec 13, 2012 · 2 comments
Assignees
Labels

Comments

@linuxonrails
Copy link
Contributor

When you have bootstrap with a navbar list and one element in this navbar is active (has 'active' class) tocify reset (remove) this class at init.

<nav class="navbar">
  <div class="navbar-inner">
    <div class="container">
      <ul class="nav">
      <li><a href="/alatriste/1">One</a></li>
      <li class="active"><a href="/alatriste/2">Two</li>
      <li><a href="/alatriste/3">Three</li>
      </ul>
    </div>
  </div>
</nav>
@ghost ghost assigned gfranko Dec 13, 2012
@gfranko
Copy link
Owner

gfranko commented Dec 13, 2012

Your issue should now be fixed! Let me know if you have any other issues.

@linuxonrails
Copy link
Contributor Author

Thanks!!

At first works, but it doesn't work when I scroll on page.

linuxonrails added a commit to linuxonrails/jquery.tocify.js that referenced this issue Dec 14, 2012
gfranko added a commit that referenced this issue Dec 14, 2012
Remove active classes within the toc element, not from other navbars. fix #9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants