Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed paging on excludes and includes tabs #1163

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading