Merge branch 'master' into 328-formular-zum-kontakt-mit-kursteilnehmern

This commit is contained in:
Steffen Jost 2019-04-16 15:24:30 +02:00
commit bb07af6439

View File

@ -135,7 +135,7 @@
if (tableFilterForm) { if (tableFilterForm) {
gatherTableFilterInputs(tableFilterForm); gatherTableFilterInputs(tableFilterForm);
addTableFilterEventListeners(); addTableFilterEventListeners(tableFilterForm);
} }
} }
@ -157,7 +157,7 @@
}); });
} }
function addTableFilterEventListeners() { function addTableFilterEventListeners(tableFilterForm) {
tableFilterInputs.search.forEach(function(input) { tableFilterInputs.search.forEach(function(input) {
var debouncedInput = debounce(function() { var debouncedInput = debounce(function() {
if (input.value.length === 0 || input.value.length > 2) { if (input.value.length === 0 || input.value.length > 2) {
@ -188,7 +188,7 @@
}); });
}); });
element.addEventListener('submit', function(event) { tableFilterForm.addEventListener('submit', function(event) {
event.preventDefault(); event.preventDefault();
updateFromTableFilter(); updateFromTableFilter();
}); });