Permalink
Browse files

Navigation: Make use of new hashToSelector() function to correctly id…

…entify embedded dialogs that do not posess the data-url attribute. Fixes #5949 - loadPage: Selecting by ID not special-character-friendly
  • Loading branch information...
gabrielschulhof committed Apr 30, 2013
1 parent 775da5f commit 3b0eb39051994aad3e3b54ca34bb870cd420ff86
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.navigation.js
@@ -446,7 +446,7 @@ define( [
// injected by a developer, in which case it would be lacking a data-url
// attribute and in need of enhancement.
if ( page.length === 0 && dataUrl && !path.isPath( dataUrl ) ) {
- page = settings.pageContainer.children( "#" + dataUrl )
+ page = settings.pageContainer.children( path.hashToSelector( "#" + dataUrl ) )
.attr( "data-" + $.mobile.ns + "url", dataUrl )
.jqmData( "url", dataUrl );
}

0 comments on commit 3b0eb39

Please sign in to comment.