fix: [element:generic_index] Correctly passes button variable

pull/37/head
mokaddem 2021-01-15 14:42:38 +01:00
parent ff84f87d33
commit c4ef14077f
1 changed files with 4 additions and 4 deletions

View File

@ -53,12 +53,12 @@
} }
?> ?>
var randomValue = '<?= h($tableRandomValue) ?>'; var randomValue = '<?= h($tableRandomValue) ?>';
$(`#quickFilterButton-${randomValue}`).click(() => { $(`#quickFilterButton-${randomValue}`).click((e) => {
doFilter($(this)) doFilter($(e.target))
}); });
$(`#quickFilterField-${randomValue}`).on('keypress', (e) => { $(`#quickFilterField-${randomValue}`).on('keypress', (e) => {
if(e.which === 13) { if (e.which === 13) {
const $button = $(this).parent().find(`#quickFilterButton-${randomValue}`) const $button = $(`#quickFilterButton-${randomValue}`)
doFilter($button) doFilter($button)
} }
}); });