Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
giscience
disaster-tools
covid-19-research-map
Commits
0abc5364
Commit
0abc5364
authored
May 12, 2020
by
Sven Lautenbach
Browse files
fixed issue
#48
Table filtering broken by var that=this
parent
939e197a
Changes
1
Hide whitespace changes
Inline
Side-by-side
nginx/covid_website/assets/js/trials-map.js
View file @
0abc5364
...
...
@@ -425,9 +425,11 @@ class TrialsMap {
// Apply the search
table
.
columns
().
every
(
function
()
{
$
(
'
input
'
,
this
.
footer
()).
on
(
'
keyup change clear
'
,
()
=>
{
var
that
=
this
var
searchPhrase
=
that
.
footer
().
lastChild
.
value
console
.
log
(
"
event
"
)
if
(
th
is
.
search
()
!==
this
.
valu
e
)
{
th
is
.
search
(
this
.
valu
e
).
draw
()
if
(
th
at
.
search
()
!==
searchPhras
e
)
{
th
at
.
search
(
searchPhras
e
).
draw
()
}
})
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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