mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 12:41:49 +02:00
Fix misplaced datepicker configuration
Bootstrap-datepicker is only included in the list_bills template but its configuration was living in the layout template, leading to a javascript error on every page except list_bills. Fixes #256
This commit is contained in:
parent
c7815e4878
commit
8b48b78046
2 changed files with 7 additions and 7 deletions
|
@ -21,13 +21,6 @@
|
|||
});
|
||||
}, 4000);
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
weekStart: 1,
|
||||
autoclose: true,
|
||||
language: '{{ g.lang }}'
|
||||
});
|
||||
|
||||
$('.dropdown-toggle').dropdown();
|
||||
|
||||
{% block js %}{% endblock %}
|
||||
|
|
|
@ -8,6 +8,13 @@
|
|||
{% block js %}
|
||||
{% if add_bill %} $('#new-bill').click(); {% endif %}
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
weekStart: 1,
|
||||
autoclose: true,
|
||||
language: '{{ g.lang }}'
|
||||
});
|
||||
|
||||
// Hide all members actions
|
||||
$('.action').each(function(){
|
||||
$(this).hide();
|
||||
|
|
Loading…
Reference in a new issue