Skip to content

Commit

Permalink
fixed paging on excludes and includes tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
bishwaspraveen committed Dec 18, 2024
1 parent 60b9afd commit a1e29f9
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 a1e29f9

Please sign in to comment.