Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix default page size for Pagination plugin. #247

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions grid/enhanced/plugins/Pagination.js
Expand Up @@ -895,7 +895,7 @@ var Pagination = declare("dojox.grid.enhanced.plugins.Pagination", _Plugin, {
}else{
this.option.pageSizes = this.pageSizes;
}
this.defaultPageSize = this.option.defaultPageSize >= 1 ? parseInt(this.option.defaultPageSize, 10) : this.pageSizes[0];
this.defaultPageSize = this.option.defaultPageSize >= 1 ? parseInt(this.option.defaultPageSize, 10) : this.option.pageSizes[0];
this.option.maxPageStep = this.option.maxPageStep > 0 ? this.option.maxPageStep : this.maxPageStep;
this.option.position = lang.isString(this.option.position) ? this.option.position.toLowerCase() : this.position;
this._nls = [
Expand Down Expand Up @@ -979,4 +979,4 @@ EnhancedGrid.registerPlugin(Pagination/*name:'pagination'*/);

return Pagination;

});
});