Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix issue 1913 - unnecessary ajax call and duplicate DOM nodes when r…

…efreshing a page with a dialog visible
  • Loading branch information...
commit 83973b429b635db1f1a6667eda73c37b4d8838da 1 parent c81b8cc
Martin Sutherland sunpig authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/jquery.mobile.navigation.js
4 js/jquery.mobile.navigation.js
View
@@ -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, "" );
}
Please sign in to comment.
Something went wrong with that request. Please try again.