Skip to content

Commit 3a54955

Browse files
authored
Merge pull request #1263 from NASA-IMPACT/1252-document-type-filter-not-working-in-delta-urls-page
1252 document type filter not working in delta urls page
2 parents 2739ad4 + 0101537 commit 3a54955

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ For each PR made, an entry should be added to this changelog. It should contain
138138
- Changes:
139139
- Added `https://sde-lrm.nasa-impact.net` to `CORS_ALLOWED_ORIGINS` in the base settings.
140140

141+
- 1252-document-type-filter-not-working-in-delta-urls-page
142+
- Description: Fixed document type filtering functionality in the "Document Type Patterns" tab in Delta URLs page.
143+
- Changes:
144+
- Added a new event listener to the Document Type Patterns dropdown to trigger the filtering of the table results based on the selected value.
145+
141146
- 1251-column-sorting-issue-curated-urls-count-sorts-by-delta-urls-count
142147
- Description: Fixed incorrect sorting behavior in Collections table where sorting by Curated URLs column was not working as expected.
143148
- Changes:

sde_indexing_helper/static/js/delta_url_list.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,11 @@ function initializeDataTable() {
881881
$("#deltaDocTypeMatchPatternFilter").on("beforeinput", function (val) {
882882
document_type_patterns_table.columns(0).search(this.value).draw();
883883
});
884+
885+
$("#document-type-patterns-dropdown-2").on("change", function () {
886+
document_type_patterns_table.columns(2).search(this.value).draw();
887+
});
888+
884889
}
885890

886891
var division_patterns_table = $("#division_patterns_table").DataTable({

0 commit comments

Comments
 (0)