fix invoice preview (#3002)

This commit is contained in:
Kevin Papst
2021-12-08 14:21:15 +01:00
committed by GitHub
parent ec9dd08970
commit 82525f382d
4 changed files with 30 additions and 7 deletions

View File

@@ -114,15 +114,15 @@
{% if form.begin is defined and form.end is defined and form.duration is defined %}
{% set blockPrefix = form.vars.id %}
<script type="text/javascript">
$('body').on('change', '#{{ blockPrefix }}_begin', function(ev) {
changedBegin($(this).val());
jQuery('body').on('change', '#{{ blockPrefix }}_begin', function(ev) {
changedBegin(jQuery(this).val());
});
$('body').on('change', '#{{ blockPrefix }}_end', function(ev) {
changedEnd($(this).val());
jQuery('body').on('change', '#{{ blockPrefix }}_end', function(ev) {
changedEnd(jQuery(this).val());
});
$('body').on('change', '#{{ blockPrefix }}_duration', function(ev) {
jQuery('body').on('change', '#{{ blockPrefix }}_duration', function(ev) {
changedDuration();
});