mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-25 18:30:23 +00:00
made sure local # urls go through the regular page nav path, and only update the hash on success
This commit is contained in:
parent
d42aace51c
commit
096467e4eb
1 changed files with 3 additions and 1 deletions
|
|
@ -113,13 +113,15 @@
|
|||
//get href, remove same-domain protocol and host
|
||||
href = $this.attr( "href" ).replace( location.protocol + "//" + location.host, ""),
|
||||
//if it still starts with a protocol, it's external, or could be :mailto, etc
|
||||
external = /^(:?\w+:|#)/.test( href ) || $this.is( "[target],[rel=external]" );
|
||||
external = /^(:?\w+:)/.test( href ) || $this.is( "[target],[rel=external]" );
|
||||
|
||||
if( href === '#' ){
|
||||
//for links created purely for interaction - ignore
|
||||
return false;
|
||||
}
|
||||
|
||||
href.replace(/^#/,'');
|
||||
|
||||
activeClickedLink = $this.closest( ".ui-btn" ).addClass( activeBtnClass );
|
||||
|
||||
if( external ){
|
||||
|
|
|
|||
Loading…
Reference in a new issue