From 07af1c2075c1f4c58b71566034f38ac2c7978338 Mon Sep 17 00:00:00 2001 From: Justin Cleveland <clevelandj@wustl.edu> Date: Fri, 29 Apr 2016 17:27:23 -0500 Subject: [PATCH] XNAT-4175 -- Set default number of items in display tables to 200 --- src/main/webapp/scripts/search/dataTableSearch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/scripts/search/dataTableSearch.js b/src/main/webapp/scripts/search/dataTableSearch.js index a0b0b814..c4635677 100644 --- a/src/main/webapp/scripts/search/dataTableSearch.js +++ b/src/main/webapp/scripts/search/dataTableSearch.js @@ -224,11 +224,11 @@ function DataTableSearch(_div_table_id,obj,_config,_options){ } } if(this.config.rowsPerPage ==undefined){ - this.config.rowsPerPage=20; + this.config.rowsPerPage=200; } }else{ if(this.config.rowsPerPage ==undefined){ - this.config.rowsPerPage=20; + this.config.rowsPerPage=200; } this.config.initialRequest="format=json&offset=0&limit="+this.config.rowsPerPage; } @@ -256,7 +256,7 @@ function DataTableSearch(_div_table_id,obj,_config,_options){ pageLinks : 5, initialPage : (this.config.initialPage!=undefined)?this.config.initialPage:1, rowsPerPage : this.config.rowsPerPage, - rowsPerPageOptions : [10,20,40,100,500,5000], + rowsPerPageOptions : [20,50,100,200,500,5000], template : this.paginator_html, totalRecords : parseInt(this.initResults.ResultSet.totalRecords), pageReportTemplate : '{currentPage} of {totalPages} Pgs ({totalRecords} Rows)' -- GitLab