Commit 0abc5364 authored by Sven Lautenbach's avatar Sven Lautenbach
Browse files

fixed issue #48 Table filtering broken by var that=this

parent 939e197a
......@@ -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 (this.search() !== this.value) {
this.search(this.value).draw()
if (that.search() !== searchPhrase) {
that.search(searchPhrase).draw()
}
})
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment