Permalink
Browse files

Ensures that data-mini="true" can be applied to individual radios/che…

…ckboxes, as well as containing controlgroups.
  • Loading branch information...
1 parent 30a8322 commit 8d0f08ac117106de11055ac7dc3c374a4b4d8bb0 @Wilto Wilto committed Mar 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.forms.checkboxradio.js
View
2 js/jquery.mobile.forms.checkboxradio.js
@@ -23,7 +23,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
// filter works though.
label = $( input ).closest( "form,fieldset,:jqmData(role='page'),:jqmData(role='dialog')" ).find( "label" ).filter( "[for='" + input[0].id + "']" ),
inputtype = input[0].type,
- mini = input.closest( "form,fieldset" ).jqmData('mini'),
+ mini = input.jqmData('mini') || input.closest( "form,fieldset" ).jqmData('mini'),
checkedState = inputtype + "-on",
uncheckedState = inputtype + "-off",
icon = input.parents( ":jqmData(type='horizontal')" ).length ? undefined : uncheckedState,

0 comments on commit 8d0f08a

Please sign in to comment.