Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for issue #1405: Moved assignment of $activeClickedLink to the vc…

…lick handler in charge of adding the active state
  • Loading branch information...
commit 9f3836e7b19b65eae5c9213018211834a910a25a 1 parent d55b225
@gseguin gseguin authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 js/jquery.mobile.navigation.js
View
5 js/jquery.mobile.navigation.js
@@ -1068,7 +1068,8 @@
var link = findClosestLink( event.target );
if ( link ) {
if ( path.parseUrl( link.getAttribute( "href" ) || "#" ).hash !== "#" ) {
- $( link ).closest( ".ui-btn" ).not( ".ui-disabled" ).addClass( $.mobile.activeBtnClass );
+ $activeClickedLink = $( link ).closest( ".ui-btn" ).not( ".ui-disabled" );
+ $activeClickedLink.addClass( $.mobile.activeBtnClass );
$( "." + $.mobile.activePageClass + " .ui-btn" ).not( link ).blur();
}
}
@@ -1146,8 +1147,6 @@
// moved into more comprehensive isExternalLink
isExternal = useDefaultUrlHandling || ( path.isExternal( href ) && !isCrossDomainPageLoad );
- $activeClickedLink = $link.closest( ".ui-btn" );
-
if( isExternal ) {
httpCleanup();
//use default click handling
Please sign in to comment.
Something went wrong with that request. Please try again.