mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
[ticket/10737] Set the username as the input value instead of redirecting.
PHPBB3-10737
This commit is contained in:
@@ -665,11 +665,11 @@ 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();
|
||||
});
|
||||
container.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'));
|
||||
});
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user