From f3e5269336e109bc68ea9939ca1e5ad9f7f98790 Mon Sep 17 00:00:00 2001 From: Robert Eisele Date: Sun, 30 Oct 2016 09:20:03 +0100 Subject: [PATCH 01/10] Update jquery.paging.js --- jquery.paging.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jquery.paging.js b/jquery.paging.js index a3f2ea3..af9c09b 100644 --- a/jquery.paging.js +++ b/jquery.paging.js @@ -313,6 +313,7 @@ } else { /* Calculate the number of pages + * http://www.xarg.org/2016/10/derivation-of-pagination-calculation/ * * Variables: * - n: Number of elements From ea58efefdddda6edce40d89297c5e9156c465b57 Mon Sep 17 00:00:00 2001 From: Robert Eisele Date: Mon, 28 Nov 2016 16:22:21 +0100 Subject: [PATCH 02/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 315d532..bfd6282 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Options - page: The current page to start on - format: A format string, look at Format - lock: Boolean to lock/disable the pager for a while (see examples/lock.html) -- lapping: The number of elements to overlap over the coming pages. +- lapping: The number of elements to overlap over the coming pages, [see](http://www.xarg.org/2016/10/derivation-of-pagination-calculation/). - circular: Boolean if next/prev buttons are allowed to go circular - onClick: Raw callback to be called instead of the `onSelect` precedure (see examples/onclick.html) - onFormat: Called for every `format` directive. See Format From 8f6c4f0d957f6a987143066cfff5e8db5230657a Mon Sep 17 00:00:00 2001 From: Robert Eisele Date: Mon, 20 Mar 2017 16:03:16 +0100 Subject: [PATCH 03/10] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bfd6282..cf8b089 100644 --- a/README.md +++ b/README.md @@ -189,4 +189,5 @@ The library is aggressively size optimized and works best with Closure-Compiler License ====== +Copyright (c) 2013, [Robert Eisele](http://www.xarg.org/) Dual licensed under the MIT or GPL Version 2 licenses. From df267130930f328e35930d2def1cae2dd8034ddf Mon Sep 17 00:00:00 2001 From: Robert Eisele Date: Wed, 25 Oct 2017 14:29:54 +0200 Subject: [PATCH 04/10] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cf8b089..3846cc9 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ Every onSelect callback gets a lot of pre-calculated information on the `this` o - page: Current page on - slice: Two element array with bounds to slice elements on the current page (see examples/slice.html) +The return code of `onSelect` indicates if the link of the clicked format element should be followed (otherwise only the click-event is used) Format ====== From 0b567b9bdcb054e93880fef4b748b22800ea3a4d Mon Sep 17 00:00:00 2001 From: Robert Eisele Date: Wed, 27 Mar 2019 12:19:58 +0100 Subject: [PATCH 05/10] Added blockwise stepping --- README.md | 1 + example/basic.html | 42 ++++++++++++---------- jquery.paging.js | 88 ++++++++++++++++++++-------------------------- 3 files changed, 64 insertions(+), 67 deletions(-) diff --git a/README.md b/README.md index 3846cc9..1e50168 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ Options - lock: Boolean to lock/disable the pager for a while (see examples/lock.html) - lapping: The number of elements to overlap over the coming pages, [see](http://www.xarg.org/2016/10/derivation-of-pagination-calculation/). - circular: Boolean if next/prev buttons are allowed to go circular +- stepwidth: Number of steps prev/next has to go. Default=1. =0 Gives blockwise steps - onClick: Raw callback to be called instead of the `onSelect` precedure (see examples/onclick.html) - onFormat: Called for every `format` directive. See Format - refresh: `timeout` and `url` to be called periodically for updates. diff --git a/example/basic.html b/example/basic.html index 3d2dcc2..620cf22 100644 --- a/example/basic.html +++ b/example/basic.html @@ -3,7 +3,7 @@ jQuery Paging Test + + + + + + + + + + + \ No newline at end of file From 60f2aa98044f6468761c5139e7acbf0f9eed17fc Mon Sep 17 00:00:00 2001 From: Robert Eisele Date: Mon, 25 Mar 2024 10:51:07 +0100 Subject: [PATCH 10/10] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 76c24a7..de1d212 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Options - page: The current page to start on - format: A format string, look at Format - lock: Boolean to lock/disable the pager for a while (see examples/lock.html) -- lapping: The number of elements to overlap over the coming pages, [see](http://www.xarg.org/2016/10/derivation-of-pagination-calculation/). +- lapping: The number of elements to overlap over the coming pages, see the [mathematical derivation](https://raw.org/article/derivation-of-pagination-calculation/). - circular: Boolean if next/prev buttons are allowed to go circular - stepwidth: Number of steps prev/next has to go. Default=1. =0 Gives blockwise steps - onClick: Raw callback to be called instead of the `onSelect` precedure (see examples/onclick.html) @@ -182,7 +182,7 @@ Further examples and documentation ========================== For further details and code examples take a look at the demonstration and documentation page on: -http://www.xarg.org/2011/09/jquery-pagination-revised/ +[jQuery Pagination](https://raw.org/article/jquery-pagination-revised/) Build ===== @@ -191,5 +191,5 @@ The library is aggressively size optimized and works best with Closure-Compiler License ====== -Copyright (c) 2013, [Robert Eisele](http://www.xarg.org/) +Copyright (c) 2013, [Robert Eisele](https://raw.org/) Dual licensed under the MIT or GPL Version 2 licenses.