Make it possible to view more than 50 rows (#3249)

Adding the options 100, 500, 1000

Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu>
This commit is contained in:
Albin Larsson 2021-10-22 19:50:10 +02:00 committed by GitHub
parent adfe1aa925
commit 919892b85f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ function DataTableView(div) {
this._div = div; this._div = div;
this._gridPagesSizes = JSON.parse(Refine.getPreference("ui.browsing.pageSize", null)); this._gridPagesSizes = JSON.parse(Refine.getPreference("ui.browsing.pageSize", null));
this._gridPagesSizes = this._checkPaginationSize(this._gridPagesSizes, [ 5, 10, 25, 50 ]); this._gridPagesSizes = this._checkPaginationSize(this._gridPagesSizes, [ 5, 10, 25, 50, 100, 500, 1000 ]);
this._pageSize = ( this._gridPagesSizes[0] < 10 ) ? 10 : this._gridPagesSizes[0]; this._pageSize = ( this._gridPagesSizes[0] < 10 ) ? 10 : this._gridPagesSizes[0];
this._showRecon = true; this._showRecon = true;