Skip to content

Commit

Permalink
Merge pull request #957 from NASA-IMPACT/935-figure-out-why-only-50-p…
Browse files Browse the repository at this point in the history
…atterns-are-made-visible-on-the-title-pattern-tab

solve the paging issue on title patterns page
  • Loading branch information
bishwaspraveen authored Aug 19, 2024
2 parents f903a32 + 5940749 commit 79b37da
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sde_indexing_helper/static/js/candidate_url_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ function initializeDataTable() {
var title_patterns_table = $("#title_patterns_table").DataTable({
// scrollY: true,
dom: "lBrtip",
serverSide: true,
paging: true,
buttons: [
{
text: "Add Pattern",
Expand All @@ -491,10 +493,10 @@ function initializeDataTable() {
},
],
lengthMenu: [
[25, 50, 100, 500],
["Show 25", "Show 50", "Show 100", "Show 500"],
[25, 50, 100, 500, -1],
["Show 25", "Show 50", "Show 100", "Show 500", "Show All"],
],
pageLength: 100,
pageLength: 50,
orderCellsTop: true,
ajax: `/api/title-patterns/?format=datatables&collection_id=${collection_id}`,
initComplete: function (data) {
Expand Down

0 comments on commit 79b37da

Please sign in to comment.