From ae975d07db2bedaaf0849f5b3761917627c17bcc Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Mon, 15 Nov 2021 00:20:43 +0100 Subject: [PATCH] submit invoice search after changing the template (#2931) --- templates/invoice/index.html.twig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/invoice/index.html.twig b/templates/invoice/index.html.twig index f255e3a1..0259aad3 100644 --- a/templates/invoice/index.html.twig +++ b/templates/invoice/index.html.twig @@ -235,6 +235,12 @@ document.addEventListener('kimai.initialized', function() { KimaiReloadPageWidget.create('kimai.systemConfigUpdate', true); + + {% if models|length > 0 %} + jQuery('body').on('change', '#{{ form.template.vars.id }}', function(event) { + document.getElementById('{{ form.vars.attr.id }}').submit(); + }); + {% endif %} });