Permalink
Browse files

Checkboxradio: set ui-btn-inherit as default theme class Fixes #6183

…- checkboxradio("option", "theme") setter works only once
  • Loading branch information...
arschmitz committed Jul 17, 2013
1 parent da41d09 commit 2978275191f1798d1b5bad4259fb11093f8e98ca
Showing with 4 additions and 2 deletions.
  1. +4 −2 js/widgets/forms/checkboxradio.js
@@ -18,7 +18,7 @@ define( [ "jquery",
$.widget( "mobile.checkboxradio", $.extend( {
options: {
theme: null,
theme: "inherit",
mini: false,
wrapperClass: null,
enhanced: false,
@@ -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
});
},
@@ -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 ) );

0 comments on commit 2978275

Please sign in to comment.