You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
517 B
16 lines
517 B
/**
|
|
* This jQuery plugin displays pagination links inside the selected elements.
|
|
*
|
|
* @author Gabriel Birke (birke *at* d-scribe *dot* de)
|
|
* @version 1.1
|
|
* @param {int} maxentries Number of entries to paginate
|
|
* @param {Object} opts Several options (see README for documentation)
|
|
* @return {Object} jQuery Object
|
|
*/
|
|
jQuery.fn.pagination = function(maxentries, opts) {
|
|
opts = jQuery.extend({
|
|
items_per_page: 10,
|
|
num_display_entries: 10,
|
|
current_page: 0,
|
|
num_edge_entries: 0,
|