From 175811f7f50529d83ebe927f43a0be13d4bbca38 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Thu, 1 Nov 2012 18:53:35 +0200 Subject: [PATCH] [controlgroup] Make use of new cornerstyle option to apply group-style corners rather than button-style corners --- js/widgets/controlgroup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/widgets/controlgroup.js b/js/widgets/controlgroup.js index 5590155209e..9d629b7fdae 100644 --- a/js/widgets/controlgroup.js +++ b/js/widgets/controlgroup.js @@ -15,9 +15,9 @@ define( [ "jquery", function flipClasses( els, flCorners ) { els.removeClass( "ui-controlgroup-last" ) .buttonMarkup( { corners: false, shadow: false } ) - .eq( 0 ).buttonMarkup( { corners: flCorners[ 0 ] } ) + .eq( 0 ).buttonMarkup( { corners: flCorners[ 0 ], cornerstyle: "group" } ) .end() - .last().buttonMarkup( { corners: flCorners[ 1 ] } ).addClass( "ui-controlgroup-last" ); + .last().buttonMarkup( { corners: flCorners[ 1 ], cornerstyle: "group" } ).addClass( "ui-controlgroup-last" ); } $.widget( "mobile.controlgroup", $.mobile.widget, { @@ -44,7 +44,7 @@ define( [ "jquery", if ( grouplegend.length ) { ui.legend.append( grouplegend ).insertBefore( $el.children( 0 ) ); } - $el.addClass( "ui-btn-corner-all ui-controlgroup" ); + $el.addClass( "ui-corner-all ui-controlgroup" ); $.each( this.options, function( key, value ) { // Cause initial options to be applied by their handler by temporarily setting the option to undefined