mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-30 19:04:43 +00:00
Merge pull request #1914 from sunpig/refreshdialog
Fix issue 1913 - unnecessary ajax call and duplicate DOM nodes when refreshing a page with a dialog visible.
This commit is contained in:
commit
19031c6492
1 changed files with 3 additions and 1 deletions
|
|
@ -156,7 +156,9 @@
|
|||
convertUrlToDataUrl: function( absUrl ) {
|
||||
var u = path.parseUrl( absUrl );
|
||||
if ( path.isEmbeddedPage( u ) ) {
|
||||
return u.hash.replace( /^#/, "" );
|
||||
// For embedded pages, remove the dialog hash key as in getFilePath(),
|
||||
// otherwise the Data Url won't match the id of the embedded Page.
|
||||
return u.hash.split( dialogHashKey )[0].replace( /^#/, "" );
|
||||
} else if ( path.isSameDomain( u, documentBase ) ) {
|
||||
return u.hrefNoHash.replace( documentBase.domain, "" );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue