diff --git a/ihatemoney/templates/layout.html b/ihatemoney/templates/layout.html
index 6ecff413..76ae8903 100644
--- a/ihatemoney/templates/layout.html
+++ b/ihatemoney/templates/layout.html
@@ -21,13 +21,6 @@
});
}, 4000);
- $('.datepicker').datepicker({
- format: 'yyyy-mm-dd',
- weekStart: 1,
- autoclose: true,
- language: '{{ g.lang }}'
- });
-
$('.dropdown-toggle').dropdown();
{% block js %}{% endblock %}
diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html
index 4029bc95..13866369 100644
--- a/ihatemoney/templates/list_bills.html
+++ b/ihatemoney/templates/list_bills.html
@@ -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();