mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10737] Set the username as the input value instead of redirecting.
PHPBB3-10737
This commit is contained in:
parent
333a18d846
commit
3fec8dff2c
2 changed files with 7 additions and 6 deletions
|
@ -665,9 +665,9 @@ phpbb.search.showResults = function(results, el, container, callback) {
|
|||
|
||||
$.each(results, function(i, item) {
|
||||
row = tpl.clone();
|
||||
row.find('.search-result').html(item.result);
|
||||
row.find('.search-result').html(item.display);
|
||||
|
||||
if (callback === 'function') {
|
||||
if (typeof callback === 'function') {
|
||||
callback.call(this, el, item, row, container);
|
||||
}
|
||||
row.appendTo(resultContainer).show();
|
||||
|
@ -836,7 +836,7 @@ phpbb.addAjaxCallback = function(id, callback) {
|
|||
* This callback handles live member searches.
|
||||
*/
|
||||
phpbb.addAjaxCallback('member_search', function(res) {
|
||||
phpbb.search.handleResponse(res, $(this), false);
|
||||
phpbb.search.handleResponse(res, $(this), false, phpbb.getFunctionByName('phpbb.search.setValueOnClick'));
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
@ -996,8 +996,9 @@ switch ($mode)
|
|||
{
|
||||
$user_list[] = array(
|
||||
'user_id' => (int) $row['user_id'],
|
||||
'username' => $row['username'],
|
||||
'result' => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),
|
||||
'result' => $row['username'],
|
||||
'username_full' => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),
|
||||
'display' => get_username_string('no_profile', $row['user_id'], $row['username'], $row['user_colour']),
|
||||
);
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
|
Loading…
Add table
Reference in a new issue