From cd90b39a833604b982491d0c92979cf189c1f426 Mon Sep 17 00:00:00 2001 From: PayBas Date: Fri, 30 May 2014 01:40:43 +0200 Subject: [PATCH] [ticket/12613] Removed jump-to placeholder and added .focus() check PHPBB3-12613 --- phpBB/styles/prosilver/template/forum_fn.js | 9 ++++++--- phpBB/styles/prosilver/template/pagination.html | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 5d2382c4dd..ebdb843a38 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -361,9 +361,12 @@ function parse_document(container) }); container.find('.pagination-trigger').click(function() { - $input = $(this).parent().find("input[name='page-number']"); - - setTimeout(function() { $input.focus(); },100); + $container = $(this).parent(); + + if (!$container.hasClass('dropdown-visible')) { + $input = $container.find("input[name='page-number']"); + setTimeout(function() { $input.focus(); },100); + } }); /** diff --git a/phpBB/styles/prosilver/template/pagination.html b/phpBB/styles/prosilver/template/pagination.html index 8b8631ce26..26bf3d88ab 100644 --- a/phpBB/styles/prosilver/template/pagination.html +++ b/phpBB/styles/prosilver/template/pagination.html @@ -9,7 +9,7 @@
  • - +