Change pref name for ui.browsing.pageSize (#2817)

Change the preference key name ui.gridPaginationSize for ui.browsing.pageSize.
This commit is contained in:
Antoine Beaubien 2020-06-27 15:58:48 -04:00 committed by GitHub
parent 7ac41b4609
commit 043e595ea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
function DataTableView(div) {
this._div = div;
this._gridPagesSizes = JSON.parse(Refine.getPreference("ui.gridPaginationSize", null));
this._gridPagesSizes = JSON.parse(Refine.getPreference("ui.browsing.pageSize", null));
this._gridPagesSizes = this._checkPaginationSize(this._gridPagesSizes, [ 5, 10, 25, 50 ]);
this._pageSize = ( this._gridPagesSizes[0] < 10 ) ? 10 : this._gridPagesSizes[0];