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

Commit

Permalink
Checkboxradio: set ui-btn-inherit as default theme class Fixes #6183
Browse files Browse the repository at this point in the history
…- checkboxradio("option", "theme") setter works only once
  • Loading branch information
arschmitz committed Jul 17, 2013
1 parent da41d09 commit 2978275
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/widgets/forms/checkboxradio.js
Expand Up @@ -18,7 +18,7 @@ define( [ "jquery",

$.widget( "mobile.checkboxradio", $.extend( {
options: {
theme: null,
theme: "inherit",
mini: false,
wrapperClass: null,
enhanced: false,
Expand Down Expand Up @@ -92,7 +92,8 @@ $.widget( "mobile.checkboxradio", $.extend( {
this.input.add( this.label ).wrapAll( this._wrapper() );
this._setOptions({
"theme": this.options.theme,
"iconpos": this.options.iconpos
"iconpos": this.options.iconpos,
"mini": this.options.mini
});

},
Expand Down Expand Up @@ -243,6 +244,7 @@ $.widget( "mobile.checkboxradio", $.extend( {
} else if( this.element.parents( "[data-" + $.mobile.ns + "type='horizontal']" ).length !== 0 ){
this.label.removeClass( "ui-btn-icon-" + this.options.iconpos );
}
this._super( options );
}

}, $.mobile.behaviors.formReset ) );
Expand Down

0 comments on commit 2978275

Please sign in to comment.