Node.js based forum software built for the modern web
fix: bump themes, l10n world sort label
Julian Lam76fe4bdd983a
diff --git a/install/package.json b/install/package.jsonindex 4281a0c71a..d1acc7e894 100644--- a/install/package.json+++ b/install/package.json@@ -107,10 +107,10 @@"nodebb-plugin-spam-be-gone": "2.3.2","nodebb-plugin-web-push": "0.7.6","nodebb-rewards-essentials": "1.0.2",- "nodebb-theme-harmony": "2.2.6",+ "nodebb-theme-harmony": "2.2.7","nodebb-theme-lavender": "7.1.19","nodebb-theme-peace": "2.2.49",- "nodebb-theme-persona": "14.2.0",+ "nodebb-theme-persona": "14.2.1","nodebb-widget-essentials": "7.0.42","nodemailer": "8.0.1","nprogress": "0.2.0",diff --git a/public/language/en-GB/world.json b/public/language/en-GB/world.jsonindex 9c9971a842..e6694bf507 100644--- a/public/language/en-GB/world.json+++ b/public/language/en-GB/world.json@@ -1,7 +1,11 @@{"name": "World","latest": "Latest",- "popular": "Popular",+ "popular-day": "Popular (Day)",+ "popular-week": "Popular (Week)",+ "popular-month": "Popular (Month)",+ "popular-year": "Popular (Year)",+ "popular-alltime": "Popular (All Time)","recent": "All","help": "Help",diff --git a/public/src/client/world.js b/public/src/client/world.jsindex bde0285db1..f428b4c97e 100644--- a/public/src/client/world.js+++ b/public/src/client/world.js@@ -19,6 +19,14 @@ define('forum/world', [handleButtons();handleHelp();+ // Add label to sort+ const sortLabelEl = document.getElementById('sort-label');+ const sortOptionsEl = document.getElementById('sort-options');+ if (sortLabelEl && sortOptionsEl) {+ const match = sortOptionsEl.querySelector(`a[href="${window.location.pathname}${window.location.search}`);+ sortLabelEl.innerText = match.innerText;+ }+search.enableQuickSearch({searchElements: {inputEl: $('[component="category-search"]'),