From a2b950d9c8a1606c63948b6c35412ba1fb3614c5 Mon Sep 17 00:00:00 2001 From: "A.Avenel" Date: Mon, 3 Sep 2012 17:40:34 +0200 Subject: [PATCH 1/2] Remove some old code no longer needed (Correct 404 errors about jquery-ui) --- budget/templates/add_bill.html | 6 ------ 1 file changed, 6 deletions(-) diff --git a/budget/templates/add_bill.html b/budget/templates/add_bill.html index 71bb6f0d..346a16da 100644 --- a/budget/templates/add_bill.html +++ b/budget/templates/add_bill.html @@ -1,11 +1,5 @@ {% extends "layout.html" %} -{% block head %} - - {% if g.lang != "en" %} - - {% endif %} -{% endblock %} {% block js %} $('#cancel-form').click(function(){location.href={{ url_for(".list_bills") }};}); $.datepicker.setDefaults({'dateFormat': 'yy-mm-dd'}); From d0129abc0edca656ae84419b9428a4212d9be00d Mon Sep 17 00:00:00 2001 From: "A.Avenel" Date: Mon, 3 Sep 2012 18:11:31 +0200 Subject: [PATCH 2/2] Bugfix : calendar widget not working when you edit a bill. --- budget/templates/add_bill.html | 3 --- budget/templates/layout.html | 10 +++++++++- budget/templates/list_bills.html | 7 ------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/budget/templates/add_bill.html b/budget/templates/add_bill.html index 346a16da..595f3637 100644 --- a/budget/templates/add_bill.html +++ b/budget/templates/add_bill.html @@ -2,9 +2,6 @@ {% block js %} $('#cancel-form').click(function(){location.href={{ url_for(".list_bills") }};}); - $.datepicker.setDefaults({'dateFormat': 'yy-mm-dd'}); - $(".datepicker").datepicker($.datepicker.regional['{{ g.lang }}']); - {% endblock %} diff --git a/budget/templates/layout.html b/budget/templates/layout.html index 71ad5e81..8e6d3b2e 100644 --- a/budget/templates/layout.html +++ b/budget/templates/layout.html @@ -8,6 +8,7 @@ + {% block head %}{% endblock %}