Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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
Gabriel Schulhof committed Apr 30, 2013
1 parent 775da5f commit 3b0eb39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mobile.navigation.js
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 3b0eb39

Please sign in to comment.