Skip to content

Commit

Permalink
Replaced 25 by 15, 20 and 30 row per lines
Browse files Browse the repository at this point in the history
  • Loading branch information
vertigo17 committed Jul 16, 2024
1 parent 610157f commit 5b530d0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions source/src/main/webapp/js/global/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ function TableConfigurationsClientSide(divId, data, aoColumnsFunction, activateP
this.bDisplayRefreshButton = false;

if (activatePagination) {
this.lengthMenu = [10, 25, 50, 100];
this.lengthMenu = [10, 15, 20, 30, 50, 100];
this.lengthChange = true;
this.bPaginate = true;
this.displayLength = 10;
Expand Down Expand Up @@ -1567,7 +1567,7 @@ function TableConfigurationsServerSide(divId, ajaxSource, ajaxProp, aoColumnsFun
this.processing = true;
this.serverSide = true;
if (lengthMenu === undefined) {
this.lengthMenu = [10, 25, 50, 100];
this.lengthMenu = [10, 15, 20, 30, 50, 100];
} else {
this.lengthMenu = lengthMenu;
}
Expand Down
2 changes: 1 addition & 1 deletion source/src/main/webapp/js/pages/ReportingExecutionByTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,7 @@ function customConfig(config) {
};

config.bPaginate = true;
config.lengthMenu = [10, 25, 50, 100, 500, 1000, 1500, 2000];
config.lengthMenu = [10, 15, 20, 30, 50, 100, 500, 1000, 1500, 2000];
config.lang.colVis = customColvisConfig;
config.orderClasses = false;
config.bDeferRender = true;
Expand Down
2 changes: 1 addition & 1 deletion source/src/main/webapp/js/pages/TestCaseExecution.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ function loadIndexSelect() {

function drawTable_Requests(data, targetTable, targetPanel) {
var configurations = new TableConfigurationsClientSide(targetTable, data.requests, aoColumnsFunc(), true, [0, 'asc']);
configurations.lengthMenu = [10, 25, 50, 100, 10000];
configurations.lengthMenu = [10, 15, 20, 30, 50, 100, 10000];

if ($('#' + targetTable).hasClass('dataTable') === false) {
createDataTableWithPermissions(configurations, undefined, targetPanel);
Expand Down
2 changes: 1 addition & 1 deletion source/src/main/webapp/js/pages/TestCaseExecutionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function loadTable(searchArray) {
var contentUrl = "ReadTestCaseExecution";

//configure and create the dataTable
var lengthMenu = [10, 25, 50, 100, 500, 1000];
var lengthMenu = [10, 15, 20, 30, 50, 100, 500, 1000];
var configurations = new TableConfigurationsServerSide("testCaseExecutionTable", contentUrl, "contentTable", aoColumnsFunc(), [2, 'desc'], lengthMenu);
var table = createDataTableWithPermissions(configurations, undefined, "#testCaseExecution", searchArray, true, undefined, undefined);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function initPage() {


// Display table
var configurations = new TableConfigurationsServerSide("executionsTable", "ReadTestCaseExecutionQueue", "contentTable", aoColumnsFunc("executionsTable"), [2, 'desc'], [10, 25, 50, 100, 200, 500, 1000]);
var configurations = new TableConfigurationsServerSide("executionsTable", "ReadTestCaseExecutionQueue", "contentTable", aoColumnsFunc("executionsTable"), [2, 'desc'], [10, 15, 20, 30, 50, 100, 200, 500, 1000]);
var table = createDataTableWithPermissions(configurations, renderOptionsForExeQueue, "#executionList", undefined, true);

if (searchS !== null) {
Expand Down
2 changes: 1 addition & 1 deletion source/src/main/webapp/js/pages/TestCaseList.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function loadTable(selectTest, sortColumn) {
$.when(jqxhr).then(function (data) {
sortColumn = 2;

var lengthMenu = [10, 25, 50, 100, 500, 1000];
var lengthMenu = [10, 15, 20, 30, 50, 100, 500, 1000];
var config = new TableConfigurationsServerSide("testCaseTable", contentUrl, "contentTable", aoColumnsFunc(data, "testCaseTable"), [2, 'asc'], lengthMenu);

var table = createDataTableWithPermissions(config, renderOptionsForTestCaseList, "#testCaseList", undefined, true);
Expand Down

0 comments on commit 5b530d0

Please sign in to comment.