]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
get rid of label on checkbox, just include it as contents
authorEvan Prodromou <evan@controlezvous.ca>
Thu, 26 Jun 2008 18:17:26 +0000 (14:17 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Thu, 26 Jun 2008 18:17:26 +0000 (14:17 -0400)
darcs-hash:20080626181726-34904-c21801c5f2a74b6e66130308cdc106429cf7f43c.gz

lib/util.php

index ccaf53123f1ec39fed6834dd61af7a4fe8e6c79b..2c2ee4c0c54763af4587e8f2362f1b120bf7b1a3 100644 (file)
@@ -322,7 +322,6 @@ function common_input($id, $label, $value=NULL,$instructions=NULL) {
 function common_checkbox($id, $label, $instructions=NULL, $value='true')
 {
        common_element_start('p');
-       common_element('label', array('for' => $id), $label);
        $attrs = array('name' => $id,
                                   'type' => 'checkbox',
                                   'id' => $id,
@@ -330,7 +329,7 @@ function common_checkbox($id, $label, $instructions=NULL, $value='true')
        if ($value) {
                $attrs['value'] = htmlspecialchars($value);
        }
-       common_element('input', $attrs);
+       common_element('input', $attrs, $label);
        if ($instructions) {
                common_element('span', 'input_instructions', $instructions);
        }