mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
fix for Issue #1425
- active state was not removed from buttons when they where not used for pagenavigation
This commit is contained in:
parent
472cbb1778
commit
702e89f034
1 changed files with 2 additions and 1 deletions
|
|
@ -772,15 +772,16 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
$activeClickedLink = $this.closest( ".ui-btn" );
|
||||
//prevent # urls from bubbling
|
||||
//path.get() is replaced to combat abs url prefixing in IE
|
||||
if( url.replace(path.get(), "") == "#" ){
|
||||
//for links created purely for interaction - ignore
|
||||
event.preventDefault();
|
||||
window.setTimeout(function() {removeActiveLinkClass(true);}, 200);
|
||||
return;
|
||||
}
|
||||
|
||||
$activeClickedLink = $this.closest( ".ui-btn" );
|
||||
|
||||
if( isExternal || hasAjaxDisabled || hasTarget || !$.mobile.ajaxEnabled ||
|
||||
// TODO: deprecated - remove at 1.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue