Permalink
Browse files

[controlgroup] Refresh the child checkboxradio widgets when the contr…

…olgroup type (horizontal/vertical) changes
  • Loading branch information...
1 parent 75594d2 commit 2c064f26daa995a4bcdcff6ab77d11ec66402c8a @gabrielschulhof gabrielschulhof committed Nov 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 js/widgets/controlgroup.js
@@ -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 ) {
@@ -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 );
},

0 comments on commit 2c064f2

Please sign in to comment.