1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-19 07:00:14 +01:00

Merge pull request #5750 from mrgoldy/ticket/12539

[ticket/12539] Rebind live member search navigation
This commit is contained in:
Marc Alexander 2019-11-28 20:46:07 +01:00
commit 3986273fdb
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -740,6 +740,8 @@ phpbb.search.closeResults = function($input, $container) {
phpbb.search.navigateResults = function($input, $container, $resultContainer) {
// Add a namespace to the event (.phpbb.search),
// 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) {
var key = event.keyCode || event.which,
$active = $resultContainer.children('.active');