From 4d4411a5360f9772b70246ce716e0213e5e04d7d Mon Sep 17 00:00:00 2001 From: Vivaan Verma Date: Mon, 16 Aug 2021 10:00:32 +0100 Subject: feat: Add select all button --- pydis_site/templates/resources/resources.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'pydis_site') diff --git a/pydis_site/templates/resources/resources.html b/pydis_site/templates/resources/resources.html index 38cd3d9d..11f7ceab 100644 --- a/pydis_site/templates/resources/resources.html +++ b/pydis_site/templates/resources/resources.html @@ -96,6 +96,10 @@ + + + + @@ -173,5 +177,14 @@ }); }); } + + function selectAllQueryParams(){ + checkboxOptions.forEach((option) => { + document.querySelectorAll(createQuerySelect(option)).forEach((checkbox) => { + checkbox.checked = true; + }); + }); + } + {% endblock %} -- cgit v1.2.3