diff --git a/README.md b/README.md index 315d532..de1d212 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ $(".pagination").paging(1337, { // make 1337 elements navigatable // add code which gets executed when user selects a page, how about $.ajax() or $(...).slice()? console.log(this); }, - onFormat: function (type) { + onFormat: function (type) { // Gets called for each character of "format" and returns a HTML representation switch (type) { case 'block': // n and c return '' + this.value + ''; @@ -47,8 +47,9 @@ 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 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) - onFormat: Called for every `format` directive. See Format - refresh: `timeout` and `url` to be called periodically for updates. @@ -67,6 +68,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 ====== @@ -180,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 ===== @@ -189,4 +191,5 @@ The library is aggressively size optimized and works best with Closure-Compiler License ====== +Copyright (c) 2013, [Robert Eisele](https://raw.org/) Dual licensed under the MIT or GPL Version 2 licenses. diff --git a/bower.json b/bower.json index 3abefbb..c75b6c7 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "paging", "main": "jquery.paging.js", - "version": "1.2.0", + "version": "1.3.1", "homepage": "http://www.xarg.org/2011/09/jquery-pagination-revised/", "description": "Probably the most advanced jQuery pagination plugin.", "keywords": [ diff --git a/example/basic.html b/example/basic.html index 3d2dcc2..804b3a2 100644 --- a/example/basic.html +++ b/example/basic.html @@ -3,7 +3,7 @@