aboutsummaryrefslogtreecommitdiff
path: root/views/default/input
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-09 18:40:07 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-09 18:40:07 +0000
commite178f0491cced328e773bee83a9631e5320a1ccb (patch)
tree99a9f3221e10a07a2e916b33c950cfe1a878dc32 /views/default/input
parentc695ccec445aa14641a4ed8d16fde297b2e06f20 (diff)
downloadelgg-e178f0491cced328e773bee83a9631e5320a1ccb.tar.gz
elgg-e178f0491cced328e773bee83a9631e5320a1ccb.tar.bz2
Defaulted userpicker to all users. Checkbox makes it only friends.
git-svn-id: https://code.elgg.org/elgg/trunk@3481 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/input')
-rw-r--r--views/default/input/userpicker.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/default/input/userpicker.php b/views/default/input/userpicker.php
index 16d8b0e93..dd193c898 100644
--- a/views/default/input/userpicker.php
+++ b/views/default/input/userpicker.php
@@ -117,9 +117,9 @@ function userPickerRemoveUser(link, guid) {
function userPickerGetSearchParams(e) {
if ($(e).parent().find('.all_users').attr('checked')) {
- return {'match_on[]': 'users'};
- } else {
return {'match_on[]': 'friends'};
+ } else {
+ return {'match_on[]': 'users'};
}
}
@@ -136,7 +136,7 @@ $(document).ready(function() {
<input class="internalname" type="hidden" name="internalname" value="<?php echo $vars['internalname']; ?>" />
<input class="search" type="text" name="user_search" />
<span class="controls">
- <label><input class="all_users" type="checkbox" name="match_on" value="true" /><?php echo elgg_echo('userpicker:show_all_users'); ?></label>
+ <label><input class="all_users" type="checkbox" name="match_on" value="true" /><?php echo elgg_echo('userpicker:only_friends'); ?></label>
</span>
<div class="results">
<!-- This space will be filled with users, checkboxes and magic. -->