From 4380f1027873566b949c61ade69b98b9aceb009a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 16 Apr 2023 13:56:31 +0200 Subject: [PATCH] fixup! implement community basics --- public/static/js/communities/community_members.js | 2 +- views/communities/community_members.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/static/js/communities/community_members.js b/public/static/js/communities/community_members.js index 3d20068..6a3ecd2 100644 --- a/public/static/js/communities/community_members.js +++ b/public/static/js/communities/community_members.js @@ -6,7 +6,7 @@ }); element.addEventListener('search', RVR.debounce(async function (e) { - RVR.httpRequest('GET', `/searchUser?q=${encodeURIComponent(e.detail.value)}`, function () { + RVR.httpRequest('GET', searchUserUrl.replace('QUERY', encodeURIComponent(e.detail.value)), function () { choices.setChoices(this.response.results, 'value', 'label', true); }); })); diff --git a/views/communities/community_members.php b/views/communities/community_members.php index 7257fce..5db0fbb 100644 --- a/views/communities/community_members.php +++ b/views/communities/community_members.php @@ -34,6 +34,7 @@ @section(pageScript)