From 34c968355231216624c2beae59ea9ad17f7ef2c0 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 13 Oct 2011 22:05:49 -0400 Subject: added documentation for the userpicker --- views/default/input/userpicker.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'views/default/input') diff --git a/views/default/input/userpicker.php b/views/default/input/userpicker.php index 87cc6e24a..5c4b297b1 100644 --- a/views/default/input/userpicker.php +++ b/views/default/input/userpicker.php @@ -9,14 +9,14 @@ * * The name of the hidden fields is members[] * - * Defaults to lazy load user lists in paginated alphabetical order. User needs + * @warning Only a single input/userpicker is supported per web page. + * + * Defaults to lazy load user lists in alphabetical order. User needs * to type two characters before seeing the user popup list. * - * As users are checked they move down to a "users" box. + * As users are selected they move down to a "users" box. * When this happens, a hidden input is created with the * name of members[] and a value of the GUID. - * - * @warning: this is not stable */ elgg_load_js('elgg.userpicker'); @@ -29,6 +29,7 @@ function user_picker_add_user($user_id) { $icon = elgg_view_entity_icon($user, 'tiny', array('hover' => false)); + // this html must be synced with the userpicker.js library $code = '
  • '; $code .= "
    $icon
    "; $code .= ""; @@ -66,5 +67,6 @@ foreach ($vars['value'] as $user_id) {
    \ No newline at end of file -- cgit v1.2.3