Fix the "and add a new one" button.

(cherry picked from commit 6a4014cf5a)
This commit is contained in:
Alexis M 2019-10-19 00:36:17 +02:00 committed by Baptiste Jonglez
parent 1f82a4c043
commit 7207d56a86

View file

@ -6,7 +6,7 @@
<script src="{{ url_for("static", filename="js/locales/bootstrap-datepicker.fr.min.js") }}" charset="utf-8"></script>
{% endblock %}
{% block js %}
{% if add_bill %} $('#new-bill').click(); {% endif %}
{% if add_bill %} $('#new-bill > a').click(); {% endif %}
$('.datepicker').datepicker({
format: 'yyyy-mm-dd',