Navigation Menu

Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Fixes: #1181 - navbar link stays active when using changePage() #4579

Merged

Conversation

jasondscott
Copy link
Contributor

Clears the active button class on the pressed navbar button after a
pagechange.

…gePage()

Clears the active button class on the pressed navbar button after a
pagechange.
@jaspermdegroot
Copy link
Contributor

Actually this is not a specific navbar issue, but a general problem with the add/remove activeBtnClass functions (navigation.js).

There are other cases where the active class is not removed while it should (for example #4611) and there are cases where buttons don't get the active class while this is desired (for example when the href contains only a hash).

So I wanted to suggest to add a comment in the code after this PR is merged that it is a temporary fix that can be removed after we looked into the original cause.

@jaspermdegroot
Copy link
Contributor

I am going to merge this PR to fix #1181 for now. When we do a refactor of the navbar widget for 1.4 we can look into why removeActiveLinkClass() doesn't take care of this. I will add a comment in the code after merging.

jaspermdegroot added a commit that referenced this pull request Feb 4, 2013
Fixes: #1181 - navbar link stays active when using changePage()
@jaspermdegroot jaspermdegroot merged commit 64143ae into jquery-archive:master Feb 4, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants