Skip to content

Commit 5f0e108

Browse files
committed
Pager: Remove unused pageSize option; whitespace
1 parent 7ba982e commit 5f0e108

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

grid-spf/pager.js

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
$.widget( "spf.pager", {
22
options: {
3-
source: null,
4-
pageSize: 2
3+
source: null
54
},
65
_create: function() {
76
var that = this;
@@ -10,7 +9,7 @@ $.widget( "spf.pager", {
109
$( this.options.source ).bind( "datasourceresponse", function() {
1110
that.refresh();
1211
});
13-
12+
1413
this.buttons = this.element.delegate("button", "click", function() {
1514
var method = $(this).data("page");
1615
that[method]();
@@ -22,9 +21,9 @@ $.widget( "spf.pager", {
2221
that.options.source.refresh();
2322
});
2423
},
25-
refresh: function() {
24+
refresh: function() {
2625
this.buttons.button("enable");
27-
26+
2827
var source = this.options.source;
2928
if (!source.options.paging.offset) {
3029
this.buttons.slice(0, 3).button("disable")
@@ -36,36 +35,36 @@ $.widget( "spf.pager", {
3635
this.element.find(".total").text(this.totalPages());
3736
this.element.find(".totalRecords").text(source.totalCount);
3837
},
39-
38+
4039
totalPages: function() {
4140
return this.options.source.totalPages();
4241
},
43-
42+
4443
page: function(pageIndex) {
4544
return this.options.source.page(pageIndex);
4645
},
47-
46+
4847
first: function() {
4948
this.page(1);
5049
},
51-
50+
5251
prevStep: function() {
5352
this.options.source.options.paging.offset -= 1;
5453
},
55-
54+
5655
prev: function() {
5756
this.page( this.page() - 1 )
5857
},
59-
58+
6059
next: function() {
6160
this.page( this.page() + 1 )
6261
},
63-
62+
6463
nextStep: function() {
6564
this.options.source.options.paging.offset += 1;
6665
},
67-
66+
6867
last: function() {
6968
this.page( this.totalPages() );
7069
}
71-
});
70+
});

0 commit comments

Comments
 (0)