From 7f79364447b07bac67d2c20cc3c1b404e8c94dc3 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 12 Feb 2011 14:37:08 +0000 Subject: Refs #1393 added work around note to checkboxes and radio inputs for integer labels git-svn-id: http://code.elgg.org/elgg/trunk@8156 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/checkboxes.php | 9 +++++++-- views/default/input/radio.php | 6 +++++- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'views') diff --git a/views/default/input/checkboxes.php b/views/default/input/checkboxes.php index 85c44de54..16d13ef66 100644 --- a/views/default/input/checkboxes.php +++ b/views/default/input/checkboxes.php @@ -2,10 +2,15 @@ /** * Elgg checkbox input * Displays a checkbox input field - * NB: This also includes a hidden input with the same name as the checkboxes + * + * @note This also includes a hidden input with the same name as the checkboxes * to make sure something is sent to the server. The default value is 0. * If using JS, be specific to avoid selecting the hidden default value: * $('input[type=checkbox][name=internalname]') + * + * @warning Passing integers as labels does not currently work due to a + * deprecated hack that will be removed in Elgg 1.9. To use integer labels, + * the labels must be character codes: 1 would be 1 * * @package Elgg * @subpackage Core @@ -50,7 +55,7 @@ if ($options && count($options) > 0) { echo "