moved configurable selector for non-history tracked links to the $.mobile hash. Renamed to $.mobile.nonHistorySelectors

This commit is contained in:
scottjehl 2010-11-06 12:04:41 -04:00
parent 925ac2b57a
commit f7ce344578

View file

@ -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" );