submit invoice search after changing the template (#2931)

This commit is contained in:
Kevin Papst
2021-11-15 00:20:43 +01:00
committed by GitHub
parent 6b49535b52
commit ae975d07db

View File

@@ -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 %}
});
</script>