fix for Issue #1425

- active state was not removed from buttons when they where not used for pagenavigation
This commit is contained in:
Nabil Saleh 2011-04-18 15:01:31 +02:00
parent 472cbb1778
commit 702e89f034

View file

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