diff options
author | 2022-02-13 16:53:32 +0100 | |
---|---|---|
committer | 2022-02-13 16:53:32 +0100 | |
commit | 33e8f0cb477547bbef7564a83353d2379caa9e0e (patch) | |
tree | 45a6b25817aca1050567abd5ea7b2796f0a8e84a /pydis_site/static/js/resources | |
parent | Edge case: Fix a bug with overflow on Chrome. (diff) |
Best practice: Switch name to data-resource-name.
Diffstat (limited to 'pydis_site/static/js/resources')
-rw-r--r-- | pydis_site/static/js/resources/resources.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/static/js/resources/resources.js b/pydis_site/static/js/resources/resources.js index 113ce502..6e4a09ba 100644 --- a/pydis_site/static/js/resources/resources.js +++ b/pydis_site/static/js/resources/resources.js @@ -150,7 +150,7 @@ function filterBySearch(resourceItems) { resourceItems.filter(function() { // Get the resource title and description - let title = $(this).attr("name"); + let title = $(this).attr("data-resource-name"); let description = $(this).find("p").text(); // Run a fuzzy search. Does the title or description match the query? |