Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
[controlgroup] Make use of new cornerstyle option to apply group-styl…
Browse files Browse the repository at this point in the history
…e corners rather than button-style corners
  • Loading branch information
Gabriel Schulhof committed Nov 1, 2012
1 parent aea5337 commit 175811f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/widgets/controlgroup.js
Expand Up @@ -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, {
Expand All @@ -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
Expand Down

0 comments on commit 175811f

Please sign in to comment.