Skip to content

Commit

Permalink
feat: hide some filters behind 'more filters' button
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Jul 16, 2020
1 parent d52d7bd commit 9fb9185
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions install/package.json
Expand Up @@ -90,9 +90,9 @@
"nodebb-plugin-spam-be-gone": "0.7.2",
"nodebb-rewards-essentials": "0.1.3",
"nodebb-theme-lavender": "5.0.11",
"nodebb-theme-persona": "10.1.66",
"nodebb-theme-persona": "10.1.67",
"nodebb-theme-slick": "1.2.29",
"nodebb-theme-vanilla": "11.1.34",
"nodebb-theme-vanilla": "11.1.35",
"nodebb-widget-essentials": "4.1.1",
"nodemailer": "^6.4.6",
"passport": "^0.4.1",
Expand Down
1 change: 1 addition & 0 deletions public/language/en-GB/flags.json
Expand Up @@ -26,6 +26,7 @@
"filter-quick-mine": "Assigned to me",
"filter-cid-all": "All categories",
"apply-filters": "Apply Filters",
"more-filters": "More Filters",

"quick-actions": "Quick Actions",
"flagged-user": "Flagged User",
Expand Down
2 changes: 1 addition & 1 deletion public/src/client/flags/list.js
Expand Up @@ -24,7 +24,7 @@ define('forum/flags/list', ['components', 'Chart'], function (components, Chart)
}
}

filtersEl.find('button').on('click', function () {
document.getElementById('apply-filters').addEventListener('click', function () {
var payload = filtersEl.serializeArray().filter(function (item) {
return !!item.value;
});
Expand Down

0 comments on commit 9fb9185

Please sign in to comment.