From f7ce344578863c2495ff66a0a0e9c05db8e91833 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Sat, 6 Nov 2010 12:04:41 -0400 Subject: [PATCH] moved configurable selector for non-history tracked links to the $.mobile hash. Renamed to $.mobile.nonHistorySelectors --- js/jquery.mobile.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.js b/js/jquery.mobile.js index f7c1ed7f..d0a9aae2 100644 --- a/js/jquery.mobile.js +++ b/js/jquery.mobile.js @@ -19,6 +19,10 @@ jQuery.extend(jQuery.mobile, { subPageUrlKey: 'ui-page', //define the key used in urls for sub-pages. Defaults to &ui-page= + + //anchor links that match these selectors will be untrackable in history + //(no change in URL, not bookmarkable) + nonHistorySelectors: '[data-rel=dialog]', degradeInputs: { color: true, date: true, @@ -60,7 +64,6 @@ focusable = "[tabindex],a,button:visible,select:visible,input", nextPageRole = null, hashListener = true, - unHashedSelectors = '[data-rel=dialog]', baseUrl = getPathDir( location.protocol + '//' + location.host + location.pathname ), resolutionBreakpoints = [320,480,768,1024]; @@ -155,7 +158,7 @@ //use ajax var pageTransition = $this.data( "transition" ) || "slide", forceBack = $this.data( "back" ) || undefined, - changeHashOnSuccess = !$this.is(unHashedSelectors); + changeHashOnSuccess = !$this.is( $.mobile.nonHistorySelectors ); nextPageRole = $this.attr( "data-rel" );