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

Commit 3b0eb39

Browse files
author
Gabriel Schulhof
committed
Navigation: Make use of new hashToSelector() function to correctly identify embedded dialogs that do not posess the data-url attribute. Fixes #5949 - loadPage: Selecting by ID not special-character-friendly
1 parent 775da5f commit 3b0eb39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ define( [
446446
// injected by a developer, in which case it would be lacking a data-url
447447
// attribute and in need of enhancement.
448448
if ( page.length === 0 && dataUrl && !path.isPath( dataUrl ) ) {
449-
page = settings.pageContainer.children( "#" + dataUrl )
449+
page = settings.pageContainer.children( path.hashToSelector( "#" + dataUrl ) )
450450
.attr( "data-" + $.mobile.ns + "url", dataUrl )
451451
.jqmData( "url", dataUrl );
452452
}

0 commit comments

Comments
 (0)