Permalink
Browse files

Dialog: Append close button to first found header to prevent a close …

…button being added to popup on same page as well. Fixes #5382.
  • Loading branch information...
1 parent 29eaf47 commit 11687b54f68100459acab54b77e6202db2e54ede @jaspermdegroot jaspermdegroot committed Dec 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/widgets/dialog.js
@@ -31,7 +31,7 @@ $.widget( "mobile.dialog", $.mobile.widget, {
$el
.wrapInner( dialogWrap )
.children()
- .find( ":jqmData(role='header')" )
+ .find( ":jqmData(role='header')" ).first()
.prepend( headerCloseButton )
.end()
.children( ':first-child')

0 comments on commit 11687b5

Please sign in to comment.