Put the checkbox back inside the <label> so that clicking on the text selects the checkbox.

This commit is contained in:
Bharat Mediratta
2009-01-31 08:57:13 +00:00
parent 38cf6ca403
commit 3d8164353f

View File

@@ -68,7 +68,7 @@ class Form_Checkbox_Core extends Form_Input {
$label = ' '.ltrim($label);
}
return '<label>'.$label.'</label>'.form::input($data);
return '<label>'.$label.form::input($data).'</label>';
}
protected function load_value()