diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2013-08-09 18:10:11 -0400 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2013-08-09 18:10:11 -0400 |
commit | 392e8e691066c7a7ca9ef82c24f30ef235e1df93 (patch) | |
tree | ae2c6aeef73eecc9b666775423864ddd3dda0455 /js/lib | |
parent | c09b6c3b91fb46c9816af3bc54a02670bcc6567a (diff) | |
download | elgg-392e8e691066c7a7ca9ef82c24f30ef235e1df93.tar.gz elgg-392e8e691066c7a7ca9ef82c24f30ef235e1df93.tar.bz2 |
Fixes #5898. Fixed selector for finding the only friends checkbox.
Diffstat (limited to 'js/lib')
-rw-r--r-- | js/lib/ui.userpicker.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/ui.userpicker.js b/js/lib/ui.userpicker.js index 7298da114..669b84cdb 100644 --- a/js/lib/ui.userpicker.js +++ b/js/lib/ui.userpicker.js @@ -107,11 +107,11 @@ elgg.userpicker.viewUser = function(info) { * @return Object */ elgg.userpicker.getSearchParams = function(obj) { - if (obj.element.siblings('[name=match_on]').attr('checked')) { + if (obj.element.parent('.elgg-user-picker').find('input[name=match_on]').attr('checked')) { return {'match_on[]': 'friends', 'term' : obj.term}; } else { return {'match_on[]': 'users', 'term' : obj.term}; } }; -elgg.register_hook_handler('init', 'system', elgg.userpicker.init);
\ No newline at end of file +elgg.register_hook_handler('init', 'system', elgg.userpicker.init); |