mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12613] Removed jump-to placeholder and added .focus() check
PHPBB3-12613
This commit is contained in:
parent
140ecf1c98
commit
cd90b39a83
2 changed files with 7 additions and 4 deletions
|
@ -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();
|
||||||
|
|
||||||
setTimeout(function() { $input.focus(); },100);
|
if (!$container.hasClass('dropdown-visible')) {
|
||||||
|
$input = $container.find("input[name='page-number']");
|
||||||
|
setTimeout(function() { $input.focus(); },100);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Add table
Reference in a new issue