Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4665 from MauriceG/patch-11
Browse files Browse the repository at this point in the history
Checkbox/Radio: Make links inside labels clickable. Addresses #3595
  • Loading branch information
jaspermdegroot committed Jul 11, 2012
2 parents ddec464 + 931d53d commit 1b7a8e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/widgets/forms/checkboxradio.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
});

// Wrap the input + label in a div
var wrapper = document.createElement('div');
var wrapper = document.createElement( 'div' );
wrapper.className = 'ui-' + inputtype;

input.add( label ).wrapAll( wrapper );

label.bind({
label.filter( 'a' ).bind({
vmouseover: function( event ) {
if ( $( this ).parent().is( ".ui-disabled" ) ) {
event.stopPropagation();
Expand Down Expand Up @@ -119,7 +119,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
// Adds checked attribute to checked input when keyboard is used
if ( $this.is( ":checked" ) ) {

$this.prop( "checked", true);
$this.prop( "checked", true );
self._getInputSet().not( $this ).prop( "checked", false );
} else {

Expand Down

0 comments on commit 1b7a8e5

Please sign in to comment.