Permalink
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...
gseguin committed Aug 18, 2011
1 parent d55b225 commit 9f3836e7b19b65eae5c9213018211834a910a25a
Showing with 2 additions and 3 deletions.
  1. +2 −3 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

0 comments on commit 9f3836e

Please sign in to comment.