Skip to content

Commit

Permalink
Merge pull request #1163 from NASA-IMPACT/1153-pagination-limited-to-…
Browse files Browse the repository at this point in the history
…50-urls-for-excludes

fixed paging on excludes and includes tabs
  • Loading branch information
CarsonDavis authored Dec 18, 2024
2 parents 60b9afd + a1e29f9 commit 26a8f99
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sde_indexing_helper/static/js/delta_url_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ function initializeDataTable() {
);

var exclude_patterns_table = $("#exclude_patterns_table").DataTable({
// scrollY: true,
serverSide: true,
paging: true,
dom: "lBrtip",
buttons: [
{
Expand All @@ -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();
Expand Down Expand Up @@ -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"],
Expand All @@ -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) {
Expand Down

0 comments on commit 26a8f99

Please sign in to comment.