From 096467e4ebcfe356d128bf151bbd8d27d26d8008 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Wed, 27 Oct 2010 16:46:51 -0400 Subject: [PATCH] made sure local # urls go through the regular page nav path, and only update the hash on success --- js/jquery.mobile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/jquery.mobile.js b/js/jquery.mobile.js index 5c17caaf..202ab442 100644 --- a/js/jquery.mobile.js +++ b/js/jquery.mobile.js @@ -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 ){