Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 0e140f9cfbfd909b3e367b63be97440002943e00 1 parent 41cc858
@jaspermdegroot jaspermdegroot authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/widgets/dialog.js
View
2  js/widgets/dialog.js
@@ -86,7 +86,7 @@ $.widget( "mobile.dialog", $.mobile.widget, {
// Sanitize value
location = ( value === "left" ? "left" : "right" );
btn = $( "<a href='#' class='ui-btn-" + location + "' data-" + $.mobile.ns + "icon='delete' data-" + $.mobile.ns + "iconpos='notext'>"+ this.options.closeBtnText + "</a>" );
- this.element.children().find( ":jqmData(role='header')" ).prepend( btn );
+ this.element.children().find( ":jqmData(role='header')" ).first().prepend( btn );
if ( this._createComplete && $.fn.buttonMarkup ) {
btn.buttonMarkup();
}
Please sign in to comment.
Something went wrong with that request. Please try again.