diff options
| author | 0livd <github@destras.fr> | 2017-08-20 12:22:47 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2017-08-20 12:22:47 +0200 |
| commit | a0d4917ac413cff938b7607bf8e36a64622257ef (patch) | |
| tree | c5df593e28c41c8961443412310250ff2b36589d /ihatemoney/templates/list_bills.html | |
| parent | 75104d9c193275855a0119d4e9d34e81bab53f2e (diff) | |
| download | ihatemoney-mirror-a0d4917ac413cff938b7607bf8e36a64622257ef.zip ihatemoney-mirror-a0d4917ac413cff938b7607bf8e36a64622257ef.tar.gz ihatemoney-mirror-a0d4917ac413cff938b7607bf8e36a64622257ef.tar.bz2 | |
Fix misplaced datepicker configuration (#258)
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
Diffstat (limited to 'ihatemoney/templates/list_bills.html')
| -rw-r--r-- | ihatemoney/templates/list_bills.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 4029bc9..1386636 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(); |
