Created
December 16, 2011 18:21
-
-
Save dbcooper/1487239 to your computer and use it in GitHub Desktop.
Minor code modification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/HTML/FormHelpers.pm b/lib/HTML/FormHelpers.pm | |
| index fba2ae6..30ba810 100644 | |
| --- a/lib/HTML/FormHelpers.pm | |
| +++ b/lib/HTML/FormHelpers.pm | |
| @@ -99,7 +99,7 @@ sub radio { | |
| while ($i < @$values) { | |
| my ($val,$disp) = @{$values}[$i, $i+1]; | |
| my $checked = $on eq $val ? 'checked="checked"' : ""; | |
| - push @ret, qq(<input type="radio" name="$fname" value="$val" $checked $attributes />$disp); | |
| + push @ret, qq(<label><input type="radio" name="$fname" value="$val" $checked $attributes />$disp</label>); | |
| } continue { $i+=2 } | |
| return ref $sep eq 'ARRAY' ? @ret : join $sep,@ret; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment