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:
parent
adfe1aa925
commit
919892b85f
@ -35,7 +35,7 @@ function DataTableView(div) {
|
||||
this._div = div;
|
||||
|
||||
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._showRecon = true;
|
||||
@ -217,7 +217,7 @@ DataTableView.prototype._renderPagingControls = function(pageSizeControls, pagin
|
||||
}
|
||||
|
||||
$('<span>'+$.i18n('core-views/show')+': </span>').appendTo(pageSizeControls);
|
||||
|
||||
|
||||
var renderPageSize = function(index) {
|
||||
var pageSize = self._gridPagesSizes[index];
|
||||
var a = $('<a href="javascript:{}"></a>')
|
||||
|
Loading…
Reference in New Issue
Block a user