Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

revert to wrapAll for checkbox and radio Fixes #3688

  • Loading branch information...
commit 77bfb5a30abc13a0181708bd5c8a8c3af6d111b0 1 parent 52bb440
@johnbender johnbender authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 js/jquery.mobile.forms.checkboxradio.js
View
5 js/jquery.mobile.forms.checkboxradio.js
@@ -66,9 +66,8 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
// Wrap the input + label in a div
var wrapper = document.createElement('div');
wrapper.className = 'ui-' + inputtype;
- input[0].parentNode.insertBefore(wrapper,input[0]);
- wrapper.appendChild(input[0]);
- wrapper.appendChild(label[0]);
+
+ input.add( label ).wrapAll( wrapper );
label.bind({
vmouseover: function( event ) {
Please sign in to comment.
Something went wrong with that request. Please try again.