mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-20 14:20:59 +00:00
fix broken hash on dialog after initial page load
This commit is contained in:
parent
af0e1f5d7e
commit
44eaf7707b
1 changed files with 5 additions and 1 deletions
|
|
@ -917,7 +917,11 @@
|
|||
// for the dialog content to be used in the hash. Instead, we want
|
||||
// to append the dialogHashKey to the url of the current page.
|
||||
if ( isDialog && active ) {
|
||||
url = active.url + dialogHashKey;
|
||||
// on the initial page load active.url is undefined and in that case should
|
||||
// be an empty string. Moving the undefined -> empty string back into
|
||||
// urlHistory.addNew seemed imprudent given undefined better represents
|
||||
// the url state
|
||||
url = ( active.url || "" ) + dialogHashKey;
|
||||
}
|
||||
|
||||
// Set the location hash.
|
||||
|
|
|
|||
Loading…
Reference in a new issue