Skip to content

Commit 900231f

Browse files
committed
Fix the fix
1 parent bfd8567 commit 900231f

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

jquery.paging.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@
203203
}
204204
}, opts || {});
205205

206-
this.opts["lapping"]*= 1;
207-
this.opts["perpage"]*= 1;
208-
this.opts["page"] *= 1;
206+
this.opts["lapping"]|= 0;
207+
this.opts["perpage"]|= 0;
208+
this.opts["page"] |= 0;
209209

210210
// If the number of elements per page is less then 1, set it to default
211211
if (this.opts["perpage"] < 1) {
@@ -447,11 +447,10 @@
447447

448448
if (self.length) {
449449

450-
self["html"](buffer);
451-
$("a", self).click(function(ev) {
450+
$("a", self["html"](buffer)).click(function(ev) {
452451
ev["preventDefault"]();
453452

454-
var obj = ev["target"];
453+
var obj = this;
455454

456455
do {
457456

@@ -461,7 +460,7 @@
461460

462461
} while ((obj = obj["parentNode"]));
463462

464-
Paging["setPage"]($.data(obj, "page"));
463+
Paging["setPage"]($(obj).data("page"));
465464

466465
if (Paging.locate) {
467466
window.location = obj["href"];

jquery.paging.min.js

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

0 commit comments

Comments
 (0)