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:
scottjehl 2010-10-27 21:57:37 -04:00
parent e202a72776
commit c8d29fb6b2

View file

@ -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;
}