git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed #1474, setting selectedIndex
[jquery.git]
/
build
/
docs
/
js
/
pager.js
diff --git
a/build/docs/js/pager.js
b/build/docs/js/pager.js
index
12755aa
..
44f2e69
100644
(file)
--- a/
build/docs/js/pager.js
+++ b/
build/docs/js/pager.js
@@
-68,7
+68,9
@@
$.fn.pager = function(step) {
pager = $("<ul class='nav-page'></ul>");
for ( var i = 0; i < names.length; i++ )
pager = $("<ul class='nav-page'></ul>");
for ( var i = 0; i < names.length; i++ )
- $("<a href=''></a>").rel( i ).html( names[i] ).click(function() {
+ $("<a href=''></a>").attr({
+ rel: i, innerHTML: names[i]
+ }).click(function() {
return handleCrop( this.rel );
}).wrap("<li></li>").parent().appendTo(pager);
return handleCrop( this.rel );
}).wrap("<li></li>").parent().appendTo(pager);
@@
-102,7
+104,7
@@
$.fn.pager = function(step) {
.addClass("cur");
pagedUI.empty().append(
.addClass("cur");
pagedUI.empty().append(
- jQuery.merge( rows, [] ).slice( s, s + e )
+ jQuery.makeArray( rows ).slice( s, s + e )
);
return false;
);
return false;