Fixes #3496 - Styling of added checkbox incorrect when in controlgroup #4299

Merged
merged 1 commit into from May 15, 2012
View
2 js/jquery.mobile.controlGroup.js
@@ -10,7 +10,7 @@ define( [ "jquery", "./jquery.mobile.buttonMarkup" ], function( $ ) {
$.fn.controlgroup = function( options ) {
function flipClasses( els, flCorners ) {
- els.removeClass( "ui-btn-corner-all ui-shadow" )
+ els.removeClass( "ui-btn-corner-all ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-controlgroup-last ui-shadow" )
.eq( 0 ).addClass( flCorners[ 0 ] )
.end()
.last().addClass( flCorners[ 1 ] ).addClass( "ui-controlgroup-last" );