aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2022-02-13 16:53:32 +0100
committerGravatar Leon Sandøy <[email protected]>2022-02-13 16:53:32 +0100
commit33e8f0cb477547bbef7564a83353d2379caa9e0e (patch)
tree45a6b25817aca1050567abd5ea7b2796f0a8e84a /pydis_site/static
parentEdge case: Fix a bug with overflow on Chrome. (diff)
Best practice: Switch name to data-resource-name.
Diffstat (limited to 'pydis_site/static')
-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
3 files changed, 3 insertions, 3 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?