aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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. -->