mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-29 12:10:26 +00:00
added check to make sure active link isn't in the new activepage (such as when it's appended to the new page for persistence), before removing class
This commit is contained in:
parent
e202a72776
commit
c8d29fb6b2
1 changed files with 2 additions and 2 deletions
|
|
@ -191,10 +191,10 @@
|
|||
|
||||
//remove active classes after page transition or error
|
||||
function removeActiveLinkClass(){
|
||||
if(activeClickedLink){
|
||||
if(activeClickedLink && !activeClickedLink.closest( '.ui-page-active' ).length ){
|
||||
activeClickedLink.removeClass( activeBtnClass );
|
||||
activeClickedLink = null;
|
||||
}
|
||||
activeClickedLink = null;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue