Permalink
Browse files

Fixes #3697 — `.ui-corner-top`/`.ui-corner-bottom` are no longer inco…

…rrectly applied to the first and last elements in a controlgroup within a dialog page.
  • Loading branch information...
Wilto committed Mar 1, 2012
1 parent 9dcc864 commit 2a0a230a1163888dd3b0d30aceebfc2167aa3b36
Showing with 9 additions and 8 deletions.
  1. +9 −8 js/jquery.mobile.dialog.js
View
@@ -27,14 +27,15 @@ $.widget( "mobile.dialog", $.mobile.widget, {
// Set aria role
$el
.wrapInner( dialogWrap )
.find( ":jqmData(role='header')" )
.prepend( headerCloseButton )
.end()
.find(':first-child')
.addClass( "ui-corner-top" )
.end()
.find( ":last-child" )
.addClass( "ui-corner-bottom" );
.children()
.find( ":jqmData(role='header')" )
.prepend( headerCloseButton )
.end()
.children( ':first-child')
.addClass( "ui-corner-top" )
.end()
.children( ":last-child" )
.addClass( "ui-corner-bottom" );
// this must be an anonymous function so that select menu dialogs can replace
// the close method. This is a change from previously just defining data-rel=back

0 comments on commit 2a0a230

Please sign in to comment.