Skip to content

Commit 79b37da

Browse files
Merge pull request #957 from NASA-IMPACT/935-figure-out-why-only-50-patterns-are-made-visible-on-the-title-pattern-tab
solve the paging issue on title patterns page
2 parents f903a32 + 5940749 commit 79b37da

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sde_indexing_helper/static/js/candidate_url_list.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,8 @@ function initializeDataTable() {
474474
var title_patterns_table = $("#title_patterns_table").DataTable({
475475
// scrollY: true,
476476
dom: "lBrtip",
477+
serverSide: true,
478+
paging: true,
477479
buttons: [
478480
{
479481
text: "Add Pattern",
@@ -491,10 +493,10 @@ function initializeDataTable() {
491493
},
492494
],
493495
lengthMenu: [
494-
[25, 50, 100, 500],
495-
["Show 25", "Show 50", "Show 100", "Show 500"],
496+
[25, 50, 100, 500, -1],
497+
["Show 25", "Show 50", "Show 100", "Show 500", "Show All"],
496498
],
497-
pageLength: 100,
499+
pageLength: 50,
498500
orderCellsTop: true,
499501
ajax: `/api/title-patterns/?format=datatables&collection_id=${collection_id}`,
500502
initComplete: function (data) {

0 commit comments

Comments
 (0)