Permalink
Browse files

[checkboxradio] Turn off icon if part of a horizontal controlgroup

  • Loading branch information...
1 parent f760adf commit c62f48baa3e2176ac4a0a55e0f7eeb022c59a090 @gabrielschulhof gabrielschulhof committed Nov 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/forms/checkboxradio.js
@@ -37,8 +37,8 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
activeBtn = icon ? "" : " " + $.mobile.activeBtnClass,
checkedClass = "ui-" + checkedState + activeBtn,
uncheckedClass = "ui-" + uncheckedState,
- checkedicon = checkedState,
- uncheckedicon = uncheckedState;
+ checkedicon = icon ? checkedState : undefined,
+ uncheckedicon = icon ? uncheckedState : undefined;
if ( inputtype !== "checkbox" && inputtype !== "radio" ) {
return;

0 comments on commit c62f48b

Please sign in to comment.