[ticket/12613] Removed jump-to placeholder and added .focus() check

PHPBB3-12613
This commit is contained in:
PayBas 2014-05-30 01:40:43 +02:00
parent 140ecf1c98
commit cd90b39a83
2 changed files with 7 additions and 4 deletions

View file

@ -361,9 +361,12 @@ function parse_document(container)
}); });
container.find('.pagination-trigger').click(function() { container.find('.pagination-trigger').click(function() {
$input = $(this).parent().find("input[name='page-number']"); $container = $(this).parent();
if (!$container.hasClass('dropdown-visible')) {
$input = $container.find("input[name='page-number']");
setTimeout(function() { $input.focus(); },100); setTimeout(function() { $input.focus(); },100);
}
}); });
/** /**

View file

@ -9,7 +9,7 @@
<li> <li>
<form class="page-jump-form" method="get"> <form class="page-jump-form" method="get">
<fieldset> <fieldset>
<input type="text" name="page-number" maxlength="6" title="{L_SEARCH_KEYWORDS}" class="inputbox tiny" value="" placeholder="{CURRENT_PAGE}" /> <input type="text" name="page-number" maxlength="6" title="{L_SEARCH_KEYWORDS}" class="inputbox tiny" value="" />
<input class="button2" value="{L_GO}" type="submit" /> <input class="button2" value="{L_GO}" type="submit" />
<input type="hidden" value="{PER_PAGE}" name="per-page"> <input type="hidden" value="{PER_PAGE}" name="per-page">
<input type="hidden" value="{START_NAME}" name="start-name"> <input type="hidden" value="{START_NAME}" name="start-name">