mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 05:34:01 +02:00
[ticket/12613] Renamed jump-to to page-jump to prevent confusion
Jump-to can easily be confused with forum-jump. Also switched the lang vars to reflect changes better PHPBB3-12613
This commit is contained in:
@@ -25,7 +25,7 @@ function popup(url, width, height, name) {
|
||||
/**
|
||||
* Jump to page
|
||||
*/
|
||||
function jumpto(item) {
|
||||
function pageJump(item) {
|
||||
|
||||
var page = item.val(),
|
||||
per_page = item.attr('data-per-page'),
|
||||
@@ -356,22 +356,22 @@ function parse_document(container)
|
||||
* Pagination
|
||||
*/
|
||||
container.find('.pagination .page-jump-form :button').click(function() {
|
||||
$input = $(this).siblings("input[name='page-number']");
|
||||
jumpto($input);
|
||||
$input = $(this).siblings("input.inputbox");
|
||||
pageJump($input);
|
||||
});
|
||||
|
||||
container.find(".pagination .page-jump-form input[name='page-number']").on("keypress", function(event) {
|
||||
container.find(".pagination .page-jump-form input.inputbox").on("keypress", function(event) {
|
||||
if (event.which == 13 || event.keyCode == 13) {
|
||||
event.preventDefault();
|
||||
jumpto($(this));
|
||||
pageJump($(this));
|
||||
}
|
||||
});
|
||||
|
||||
container.find('.pagination-trigger').click(function() {
|
||||
$container = $(this).parent();
|
||||
$dropdown_container = $(this).parent();
|
||||
|
||||
if (!$container.hasClass('dropdown-visible')) {
|
||||
$input = $container.find("input[name='page-number']");
|
||||
if (!$dropdown_container.hasClass('dropdown-visible')) {
|
||||
$input = $dropdown_container.find("input.inputbox");
|
||||
setTimeout(function() { $input.focus(); },100);
|
||||
}
|
||||
});
|
||||
|
@@ -1,11 +1,11 @@
|
||||
<ul>
|
||||
<!-- IF BASE_URL -->
|
||||
<li class="dropdown-container dropdown-button-control dropdown-jump-to jump-to">
|
||||
<a href="#" class="pagination-trigger dropdown-trigger" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a>
|
||||
<li class="dropdown-container dropdown-button-control dropdown-page-jump page-jump">
|
||||
<a href="#" class="pagination-trigger dropdown-trigger" title="{L_JUMP_TO_PAGE_CLICK}">{PAGE_NUMBER}</a>
|
||||
<div class="dropdown hidden">
|
||||
<div class="pointer"><div class="pointer-inner"></div></div>
|
||||
<ul class="dropdown-contents">
|
||||
<li>{L_JUMP_TO_PAGE_FORM}</li>
|
||||
<li>{L_JUMP_TO_PAGE}</li>
|
||||
<li class="page-jump-form">
|
||||
<input type="text" name="page-number" maxlength="6" title="{L_SEARCH_KEYWORDS}" class="inputbox tiny" value="" data-per-page="{PER_PAGE}" data-base-url="{BASE_URL|e('html_attr')}" data-start-name="{START_NAME}" />
|
||||
<input class="button2" value="{L_GO}" type="button" />
|
||||
|
Reference in New Issue
Block a user