mock shop page: case-insensitive search
This commit is contained in:
+1
-1
@@ -240,7 +240,7 @@
|
|||||||
else
|
else
|
||||||
for li in (<li/> in the next <ul/>)
|
for li in (<li/> in the next <ul/>)
|
||||||
set name to the (innerHTML of the first .listing-name in li).trim()
|
set name to the (innerHTML of the first .listing-name in li).trim()
|
||||||
if not name.includes(term)
|
if not name.toLowerCase().includes(term.toLowerCase())
|
||||||
add .hidden to li
|
add .hidden to li
|
||||||
else
|
else
|
||||||
remove .hidden from li
|
remove .hidden from li
|
||||||
|
|||||||
Reference in New Issue
Block a user