Don't capture submit of all dbTable-Forms

This commit is contained in:
Gregor Kleen 2019-04-16 15:14:33 +02:00
parent aee5b91b8f
commit 5021cca59c

View File

@ -135,7 +135,7 @@
if (tableFilterForm) {
gatherTableFilterInputs(tableFilterForm);
addTableFilterEventListeners();
addTableFilterEventListeners(tableFilterForm);
}
}
@ -157,7 +157,7 @@
});
}
function addTableFilterEventListeners() {
function addTableFilterEventListeners(tableFilterForm) {
tableFilterInputs.search.forEach(function(input) {
var debouncedInput = debounce(function() {
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();
updateFromTableFilter();
});