From a1e29f9df8268fa271eb2668251827b7b193bfa7 Mon Sep 17 00:00:00 2001 From: Bishwas Praveen Date: Wed, 18 Dec 2024 11:58:19 -0600 Subject: [PATCH] fixed paging on excludes and includes tabs --- sde_indexing_helper/static/js/delta_url_list.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sde_indexing_helper/static/js/delta_url_list.js b/sde_indexing_helper/static/js/delta_url_list.js index 060eff59..f68c2489 100644 --- a/sde_indexing_helper/static/js/delta_url_list.js +++ b/sde_indexing_helper/static/js/delta_url_list.js @@ -539,7 +539,8 @@ function initializeDataTable() { ); var exclude_patterns_table = $("#exclude_patterns_table").DataTable({ - // scrollY: true, + serverSide: true, + paging: true, dom: "lBrtip", buttons: [ { @@ -562,7 +563,7 @@ function initializeDataTable() { ["Show 25", "Show 50", "Show 100", "Show 500"], ], orderCellsTop: true, - pageLength: 100, + pageLength: 50, ajax: `/api/exclude-patterns/?format=datatables&collection_id=${collection_id}`, initComplete: function (data) { var table = $("#exclude_patterns_table").DataTable(); @@ -626,7 +627,8 @@ function initializeDataTable() { }); var include_patterns_table = $("#include_patterns_table").DataTable({ - // scrollY: true, + serverSide: true, + paging: true, lengthMenu: [ [25, 50, 100, 500], ["Show 25", "Show 50", "Show 100", "Show 500"], @@ -648,7 +650,7 @@ function initializeDataTable() { }, }, ], - pageLength: 100, + pageLength: 50, orderCellsTop: true, ajax: `/api/include-patterns/?format=datatables&collection_id=${collection_id}`, initComplete: function (data) {