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

Checkbox/Radio: Make links inside labels clickable. Addresses #3595 #4665

Merged
merged 2 commits into from
Jul 11, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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