From f51a02005cb4248dcbd033010255668317f342f3 Mon Sep 17 00:00:00 2001 From: Alexis M Date: Fri, 18 Oct 2019 19:39:14 +0200 Subject: Remove jQuery datepicker. We don't need this anymore because all major browser now have implemented that feature on the browser itself. Closes #221. --- ihatemoney/templates/forms.html | 2 +- ihatemoney/templates/list_bills.html | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'ihatemoney/templates') diff --git a/ihatemoney/templates/forms.html b/ihatemoney/templates/forms.html index c96921c..12cc165 100644 --- a/ihatemoney/templates/forms.html +++ b/ihatemoney/templates/forms.html @@ -91,7 +91,7 @@ {% if title %}{% if edit %}{{ _("Edit this bill") }} {% else %}{{ _("Add a bill") }} {% endif %}{% endif %} {% include "display_errors.html" %} {{ form.hidden_tag() }} - {{ input(form.date, class="form-control datepicker", inline=True) }} + {{ input(form.date, class="form-control", inline=True) }} {{ input(form.what, inline=True) }} {{ input(form.payer, inline=True, class="form-control custom-select") }} {{ input(form.amount, inline=True) }} diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 49293d3..597dc37 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -1,19 +1,9 @@ {% extends "sidebar_table_layout.html" %} {% block title %} - {{ g.project.name }}{% endblock %} -{% block head %} - - -{% endblock %} {% block js %} {% if add_bill %} $('#new-bill > a').click(); {% endif %} - $('.datepicker').datepicker({ - format: 'yyyy-mm-dd', - weekStart: 1, - autoclose: true, - language: '{{ g.lang }}' - }); // ask for confirmation before removing an user $('.action.delete').each(function(){ var link = $(this).find('button'); -- cgit v1.1