mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-21 00:10:24 +00:00
ajaxClick only updates the hash if the clicked element doesn't match the new unHashedSelectors var. So far, this only includes [data-rel=dialog]
This commit is contained in:
parent
cb13c2f84a
commit
b8cf201a88
1 changed files with 9 additions and 3 deletions
|
|
@ -58,7 +58,8 @@
|
|||
} ],
|
||||
focusable = "[tabindex],a,button:visible,select:visible,input",
|
||||
nextPageRole = null,
|
||||
preventLoad = false;
|
||||
preventLoad = false,
|
||||
unHashedSelectors = '[data-rel=dialog]';
|
||||
|
||||
// TODO: don't expose (temporary during code reorg)
|
||||
$.mobile.urlStack = urlStack;
|
||||
|
|
@ -129,8 +130,13 @@
|
|||
location = href
|
||||
}
|
||||
else{
|
||||
// let the hashchange event handler take care of requesting the page via ajax
|
||||
location.hash = href;
|
||||
changePage(href, pageTransition);
|
||||
|
||||
if( !$(this).is(unHashedSelectors) ){
|
||||
// let the hashchange event handler take care of requesting the page via ajax
|
||||
location.hash = href;
|
||||
}
|
||||
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue