From 27c678125a0a9e74ef644fadaf0ff7ca448bca90 Mon Sep 17 00:00:00 2001 From: PayBas Date: Sun, 1 Jun 2014 19:08:07 +0200 Subject: [ticket/12613] Dropdown-visible page-jump icon, fix focus() timing Also removed outdated CSS PHPBB3-12613 --- phpBB/styles/prosilver/template/forum_fn.js | 13 +++++++------ phpBB/styles/prosilver/template/pagination.html | 2 +- phpBB/styles/prosilver/theme/colours.css | 11 +++-------- phpBB/styles/prosilver/theme/common.css | 2 +- 4 files changed, 12 insertions(+), 16 deletions(-) (limited to 'phpBB') diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index a4d4c7527c..7041c6021c 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -367,13 +367,14 @@ function parse_document(container) } }); - container.find('.pagination-trigger').click(function() { + container.find('.pagination .dropdown-trigger').click(function() { $dropdown_container = $(this).parent(); - - if (!$dropdown_container.hasClass('dropdown-visible')) { - $input = $dropdown_container.find("input.inputbox"); - setTimeout(function() { $input.focus(); },100); - } + // Wait a little bit to make sure the dropdown has activated + setTimeout(function() { + if ($dropdown_container.hasClass('dropdown-visible')) { + $dropdown_container.find("input.inputbox").focus(); + } + },100); }); /** diff --git a/phpBB/styles/prosilver/template/pagination.html b/phpBB/styles/prosilver/template/pagination.html index 080a946ffd..8f137eb8ef 100644 --- a/phpBB/styles/prosilver/template/pagination.html +++ b/phpBB/styles/prosilver/template/pagination.html @@ -1,7 +1,7 @@