aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pydis_site/static/js/fuzzysort/LICENSE.md2
-rw-r--r--pydis_site/static/js/fuzzysort/fuzzysort.js2
-rw-r--r--pydis_site/static/js/resources/resources.js2
-rw-r--r--pydis_site/templates/resources/resource_box.html2
4 files changed, 4 insertions, 4 deletions
diff --git a/pydis_site/static/js/fuzzysort/LICENSE.md b/pydis_site/static/js/fuzzysort/LICENSE.md
index 736006f1..a3b9d9d7 100644
--- a/pydis_site/static/js/fuzzysort/LICENSE.md
+++ b/pydis_site/static/js/fuzzysort/LICENSE.md
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE. \ No newline at end of file
+SOFTWARE.
diff --git a/pydis_site/static/js/fuzzysort/fuzzysort.js b/pydis_site/static/js/fuzzysort/fuzzysort.js
index 88cfe570..ba01ae63 100644
--- a/pydis_site/static/js/fuzzysort/fuzzysort.js
+++ b/pydis_site/static/js/fuzzysort/fuzzysort.js
@@ -633,4 +633,4 @@ return fuzzysortNew()
// TODO: (like sublime) backslash === forwardslash
// TODO: (like sublime) spaces: "a b" should do 2 searches 1 for a and 1 for b
// TODO: (scoring) garbage in targets that allows most searches to strict match need a penality
-// TODO: (performance) idk if allowTypo is optimized \ No newline at end of file
+// TODO: (performance) idk if allowTypo is optimized
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?
diff --git a/pydis_site/templates/resources/resource_box.html b/pydis_site/templates/resources/resource_box.html
index 5189bb3e..5ca46296 100644
--- a/pydis_site/templates/resources/resource_box.html
+++ b/pydis_site/templates/resources/resource_box.html
@@ -2,7 +2,7 @@
{% load to_kebabcase %}
{% load get_category_icon %}
-<div class="box resource-box {{ resource.css_classes }}" name="{{ resource.name }}">
+<div class="box resource-box {{ resource.css_classes }}" data-resource-name="{{ resource.name }}">
{% if 'title_url' in resource %}
<a href="{{ resource.title_url }}">
{% include "resources/resource_box_header.html" %}