]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed passing wrong parameters to input/userpicker (which is not currently functional)
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 14 May 2011 19:14:54 +0000 (19:14 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 14 May 2011 19:14:54 +0000 (19:14 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@9076 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/developers/views/default/theme_preview/forms.php
views/default/input/userpicker.php

index 60183ead92cc6d1413f8c3191483bd1ded8127ad..efbe0b5a0882385fcffb37a920ff5e4a2a86521a 100644 (file)
                        <?php echo elgg_view('input/userpicker', array(
                                        'name' => 'f13',
                                        'id' => 'f13',
-                                       'value' => array(new ElggUser(), new ElggUser(), new ElggUser()),
                                        ));
                        ?>
                </div>
index 656effc98e68d3568fd2b0117040341ac2f3ede2..dcd65072a5f613a664ad31d7dc7bb11c8a42dadf 100644 (file)
@@ -5,17 +5,18 @@
  * @package Elgg
  * @subpackage Core
  *
- * @uses $vars['value'] The current value, if any
- * @uses $vars['name'] The name of the input field
+ * @uses $vars['value'] Array of user guids for already selected users or null
+ * @uses $vars['name']  The name of the input field
  *
  *
- * pops up defaulted to lazy load friends lists in paginated alphabetical order.
- * upon
+ * Defaults to lazy load user lists in paginated alphabetical order. User needs
+ * two type two characters before seeing the user popup list.
  *
  * As users are checked they move down to a "users" box.
  * When this happens, a hidden input is created also.
- *     {$internalnal}[] with the value th GUID.
+ *     {$internalnal}[] with the value the GUID.
  *
+ * @warning: this is not stable
  */
 
 elgg_load_js('elgg.userpicker');
@@ -65,6 +66,5 @@ foreach ($vars['value'] as $user_id) {
        <ul class="elgg-user-picker-entries"><?php echo $user_list; ?></ul>
 </div>
 <script type="text/javascript">
-       elgg.provide('elgg.userpicker');
        elgg.userpicker.userList = <?php echo $json_values ?>;
 </script>
\ No newline at end of file