Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
28316b02
Commit
28316b02
authored
Oct 21, 2020
by
janis.streib
🦉
Browse files
UPD: better default search function
parent
6f27264e
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/Paginator.vue
View file @
28316b02
...
...
@@ -44,10 +44,10 @@ export default {
type
:
Function
,
default
()
{
return
function
(
item
,
term
)
{
term
=
term
.
toLowerCase
()
for
(
const
v
of
Object
.
values
(
item
))
{
window
.
console
.
debug
(
typeof
v
)
if
(
typeof
v
===
'
string
'
)
{
if
(
v
.
includes
(
term
))
{
if
(
v
.
toLowerCase
().
includes
(
term
))
{
return
true
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment