Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit c43f40a

Browse files
committed
bug fixes and pagination only aplied to visible items
1 parent 334665f commit c43f40a

12 files changed

+23
-27
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@ jPages is a client-side pagination plugin but it gives you a lot more features c
44
Apart from all its features, the main diference for the other pagination plugins is that with jPages you can create as many navigation panels as you want and you can choose exactly where to place them.
55
The plugin is very unobtrusive and it won't apply any extra styles to the items you are paginating. It will only create and insert the links inside the element(s) you are applying the plugin to, in order to turn them into navigation panel(s).
66

7-
Visit jPages [Project page](http://luis-almeida.github.com/jPages/)
7+
Visit jPages [project page](http://luis-almeida.github.com/jPages/)
88

99

1010

1111
Browser compatibility (tested):
1212

13-
IE7+,
14-
Chrome (current version),
15-
Firefox (current version),
16-
Safari (current version),
13+
IE7+
14+
Chrome (current version)
15+
Firefox (current version)
16+
Safari (current version)
1717
Opera (current version)
1818

1919

2020

2121
Release log:
2222

23+
Bug fixes and pagination only aplied to visible items - v0.2 (20.03.2012)
2324
First release - v0.1 (26.01.2012)

callback.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/* when document is ready */
4141
$(function() {
4242

43-
/* initiate pugin */
43+
/* initiate plugin */
4444
$("div.holder").jPages({
4545
containerID : "itemContainer",
4646
callback : function( pages, items ){

customizebuttons.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/* when document is ready */
4141
$(function() {
4242

43-
/* initiate pugin assigning the desired button labels */
43+
/* initiate plugin assigning the desired button labels */
4444
$("div.holder").jPages({
4545
containerID : "itemContainer",
4646
first : "first",

defaults.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/* when document is ready */
4141
$(function() {
4242

43-
/* initiate pugin */
43+
/* initiate plugin */
4444
$("div.holder").jPages({
4545
containerID: "itemContainer"
4646
});

destroy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/* when document is ready */
4141
$(function() {
4242

43-
/* initiate pugin */
43+
/* initiate plugin */
4444
$("div.holder").jPages({
4545
containerID : "itemContainer"
4646
});

documentation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ <h2>Demos</h2>
9494

9595
<h2 style="margin-top: 0;">Options</h2>
9696

97-
<h3>container <span>String</span></h3>
97+
<h3>containerID <span>String</span></h3>
9898
<strong>Default value:</strong> <i>Required! (No default)</i>
99-
<p>jQuery selector of the container of the items you want to paginate. It can be an UL, OL, DIV etc.</p>
99+
<p>The ID of the container of the items you want to paginate. It can be an UL, OL, DIV etc.</p>
100100

101101
<h3>first <span>String || false</span></h3>
102102
<strong>Default value:</strong> <i>false</i>

gallery.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<script>
4040
$(function() {
4141

42-
/* initiate pugin */
42+
/* initiate plugin */
4343
$("div.holder").jPages({
4444
containerID : "thumbs",
4545
perPage : 5,

itemsperpage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/* when document is ready */
4141
$(function() {
4242

43-
/* initiate pugin */
43+
/* initiate plugin */
4444
$("div.holder").jPages({
4545
containerID : "itemContainer",
4646
perPage : 5

js/jPages.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@
4646
this._previous = $( this.options.previous );
4747
this._next = $( this.options.next );
4848
this._last = $( this.options.last );
49-
50-
this._items = this._container.children();
49+
50+
/* only visible items! */
51+
this._items = this._container.children(":visible");
5152
this._itemsShowing = $([]);
5253
this._itemsHiding = $([]);
5354

@@ -596,8 +597,6 @@
596597
};
597598

598599
this._holder.unbind("click.jPages").empty();
599-
600-
delete instance;
601600
};
602601

603602

@@ -617,6 +616,9 @@
617616

618617
if ( type === "string" && arg === "destroy" ) {
619618
instance.destroy();
619+
this.each( function() {
620+
$.removeData( this, name );
621+
} );
620622
return this;
621623
};
622624

js/jPages.min.js

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)