From f0a88b13d1fd19416a888cdbb3e1e25584723338 Mon Sep 17 00:00:00 2001 From: patrickzerhusen Date: Sun, 19 Apr 2026 16:42:25 +0200 Subject: [PATCH] categories searchable in contribution list --- public/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/app.js b/public/js/app.js index 6273066..037a78b 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -596,10 +596,12 @@ function updateContributionsList() { var filtered = contributionsData.filter(function (f) { var props = f.properties; var matchesCategory = activeFilters.indexOf(props.category) !== -1; + var cat = CATEGORIES[props.category] || CATEGORIES.other; var matchesSearch = !searchTerm || props.title.toLowerCase().indexOf(searchTerm) !== -1 || (props.description && props.description.toLowerCase().indexOf(searchTerm) !== -1) || - props.author_name.toLowerCase().indexOf(searchTerm) !== -1; + props.author_name.toLowerCase().indexOf(searchTerm) !== -1 || + cat.label.toLowerCase().indexOf(searchTerm) !== -1; return matchesCategory && matchesSearch; });