made sure local # urls go through the regular page nav path, and only update the hash on success

This commit is contained in:
scottjehl 2010-10-27 16:46:51 -04:00
parent d42aace51c
commit 096467e4eb

View file

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