feat: hide some filters behind 'more filters' button

This commit is contained in:
Julian Lam
2020-07-16 09:32:20 -04:00
parent d52d7bdb10
commit 9fb9185fa7
3 changed files with 4 additions and 3 deletions

View File

@@ -90,9 +90,9 @@
"nodebb-plugin-spam-be-gone": "0.7.2", "nodebb-plugin-spam-be-gone": "0.7.2",
"nodebb-rewards-essentials": "0.1.3", "nodebb-rewards-essentials": "0.1.3",
"nodebb-theme-lavender": "5.0.11", "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-slick": "1.2.29",
"nodebb-theme-vanilla": "11.1.34", "nodebb-theme-vanilla": "11.1.35",
"nodebb-widget-essentials": "4.1.1", "nodebb-widget-essentials": "4.1.1",
"nodemailer": "^6.4.6", "nodemailer": "^6.4.6",
"passport": "^0.4.1", "passport": "^0.4.1",

View File

@@ -26,6 +26,7 @@
"filter-quick-mine": "Assigned to me", "filter-quick-mine": "Assigned to me",
"filter-cid-all": "All categories", "filter-cid-all": "All categories",
"apply-filters": "Apply Filters", "apply-filters": "Apply Filters",
"more-filters": "More Filters",
"quick-actions": "Quick Actions", "quick-actions": "Quick Actions",
"flagged-user": "Flagged User", "flagged-user": "Flagged User",

View File

@@ -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) { var payload = filtersEl.serializeArray().filter(function (item) {
return !!item.value; return !!item.value;
}); });