Skip to content

Commit d435979

Browse files
committed
Allow developer to apply themes on checkboxes/radio-buttons.
1 parent 2b226d0 commit d435979

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/jquery.mobile.forms.checkboxradio.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
1717
uncheckedicon = "ui-icon-" + inputtype + "-off";
1818

1919
if ( inputtype != "checkbox" && inputtype != "radio" ) { return; }
20+
21+
// Check for theme...
22+
if( !this.options.theme )
23+
this.options.theme = this.element.data('theme');
2024

2125
label
2226
.buttonMarkup({

0 commit comments

Comments
 (0)