summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormillette <millette@controlyourself.ca>2008-11-28 17:36:46 -0500
committermillette <millette@controlyourself.ca>2008-11-28 17:36:46 -0500
commit5878647c55a5f1c6fab5b27c627dde091067ce88 (patch)
treee836da06301ec74626dc3f4853feee2b6878cd33 /lib
parentce0883330306ccb9bd50aef4d7963351284bd698 (diff)
use label tab for checkboxes
darcs-hash:20081128223646-099f7-79b7c961b4494ff7430bd3c0a0f4742888098ede.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index c3d11b074..03720a778 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -401,9 +401,8 @@ function common_checkbox($id, $label, $checked=false, $instructions=NULL, $value
$attrs['disabled'] = 'true';
}
common_element('input', $attrs);
- # XXX: use a <label>
common_text(' ');
- common_element('span', 'checkbox_label', $label);
+ common_element('label', array('class' => 'checkbox_label', 'for' => $id), $label);
common_text(' ');
if ($instructions) {
common_element('span', 'input_instructions', $instructions);