aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/templates/resources/resources.html13
1 files changed, 13 insertions, 0 deletions
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 @@
<span class="is-one-fifth control">
<button onclick="clearQueryParams()" class="button is-danger is-small">Clear Search</button>
</span>
+
+ <span class="control ml-2">
+ <button onclick="selectAllQueryParams()" class="button is-success is-small">Select All</button>
+ </span>
</div>
</div>
</div>
@@ -173,5 +177,14 @@
});
});
}
+
+ function selectAllQueryParams(){
+ checkboxOptions.forEach((option) => {
+ document.querySelectorAll(createQuerySelect(option)).forEach((checkbox) => {
+ checkbox.checked = true;
+ });
+ });
+ }
+
</script>
{% endblock %}