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

Commit

Permalink
[controlgroup] Refresh the child checkboxradio widgets when the contr…
Browse files Browse the repository at this point in the history
…olgroup type (horizontal/vertical) changes
  • Loading branch information
Gabriel Schulhof committed Nov 9, 2012
1 parent 75594d2 commit 2c064f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/widgets/controlgroup.js
Expand Up @@ -63,6 +63,7 @@ define( [ "jquery",
this.element
.removeClass( "ui-controlgroup-horizontal ui-controlgroup-vertical" )
.addClass( "ui-controlgroup-" + value );
this._refresh( false );
},

_setCorners: function( value ) {
Expand All @@ -83,6 +84,7 @@ define( [ "jquery",

_refresh: function( create ) {
var els = this.element.find( ".ui-btn" ).not( ".ui-slider-handle" );
this.element.find( ":mobile-checkboxradio" ).checkboxradio( "refresh" );
this._addFirstLastClasses( els, this.options.excludeInvisible ? this._getVisibles( els, create ) : els, create );
},

Expand Down

0 comments on commit 2c064f2

Please sign in to comment.