Skip to content

Commit 6bc1767

Browse files
committed
Merge branch 'dev' of github.com:NASA-IMPACT/COSMOS into dev
2 parents 9acfb14 + 26a8f99 commit 6bc1767

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

sde_indexing_helper/static/js/delta_url_list.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,8 @@ function initializeDataTable() {
539539
);
540540

541541
var exclude_patterns_table = $("#exclude_patterns_table").DataTable({
542-
// scrollY: true,
542+
serverSide: true,
543+
paging: true,
543544
dom: "lBrtip",
544545
buttons: [
545546
{
@@ -562,7 +563,7 @@ function initializeDataTable() {
562563
["Show 25", "Show 50", "Show 100", "Show 500"],
563564
],
564565
orderCellsTop: true,
565-
pageLength: 100,
566+
pageLength: 50,
566567
ajax: `/api/exclude-patterns/?format=datatables&collection_id=${collection_id}`,
567568
initComplete: function (data) {
568569
var table = $("#exclude_patterns_table").DataTable();
@@ -626,7 +627,8 @@ function initializeDataTable() {
626627
});
627628

628629
var include_patterns_table = $("#include_patterns_table").DataTable({
629-
// scrollY: true,
630+
serverSide: true,
631+
paging: true,
630632
lengthMenu: [
631633
[25, 50, 100, 500],
632634
["Show 25", "Show 50", "Show 100", "Show 500"],
@@ -648,7 +650,7 @@ function initializeDataTable() {
648650
},
649651
},
650652
],
651-
pageLength: 100,
653+
pageLength: 50,
652654
orderCellsTop: true,
653655
ajax: `/api/include-patterns/?format=datatables&collection_id=${collection_id}`,
654656
initComplete: function (data) {

0 commit comments

Comments
 (0)