mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 22:45:02 +02:00
Merge pull request #5750 from mrgoldy/ticket/12539
[ticket/12539] Rebind live member search navigation
This commit is contained in:
commit
3986273fdb
@ -740,6 +740,8 @@ phpbb.search.closeResults = function($input, $container) {
|
|||||||
phpbb.search.navigateResults = function($input, $container, $resultContainer) {
|
phpbb.search.navigateResults = function($input, $container, $resultContainer) {
|
||||||
// Add a namespace to the event (.phpbb.search),
|
// Add a namespace to the event (.phpbb.search),
|
||||||
// so it can be unbound specifically later on.
|
// so it can be unbound specifically later on.
|
||||||
|
// Rebind it, to ensure the event is 'dynamic'.
|
||||||
|
$input.off('.phpbb.search');
|
||||||
$input.on('keydown.phpbb.search', function(event) {
|
$input.on('keydown.phpbb.search', function(event) {
|
||||||
var key = event.keyCode || event.which,
|
var key = event.keyCode || event.which,
|
||||||
$active = $resultContainer.children('.active');
|
$active = $resultContainer.children('.active');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user