aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/layout.html
diff options
context:
space:
mode:
authorA.Avenel <avenel.alexandre@gmail.com>2012-09-03 18:11:31 +0200
committerA.Avenel <avenel.alexandre@gmail.com>2012-09-03 18:11:31 +0200
commitd0129abc0edca656ae84419b9428a4212d9be00d (patch)
treeb80fd2cfc3c461b60a510e73464a7e26098cdb90 /budget/templates/layout.html
parenta2b950d9c8a1606c63948b6c35412ba1fb3614c5 (diff)
downloadihatemoney-mirror-d0129abc0edca656ae84419b9428a4212d9be00d.zip
ihatemoney-mirror-d0129abc0edca656ae84419b9428a4212d9be00d.tar.gz
ihatemoney-mirror-d0129abc0edca656ae84419b9428a4212d9be00d.tar.bz2
Bugfix : calendar widget not working when you edit a bill.
Diffstat (limited to 'budget/templates/layout.html')
-rw-r--r--budget/templates/layout.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/budget/templates/layout.html b/budget/templates/layout.html
index 71ad5e8..8e6d3b2 100644
--- a/budget/templates/layout.html
+++ b/budget/templates/layout.html
@@ -8,6 +8,7 @@
<script src="{{ url_for("static", filename="js/jquery-1.7.2.min.js") }}"></script>
<script src="{{ url_for("static", filename="js/ihatemoney.js") }}"></script>
<script src="{{ url_for("static", filename="js/bootstrap.min.js") }}"></script>
+ <script src="{{ url_for("static", filename="js/bootstrap-datepicker.js") }}"></script>
{% block head %}{% endblock %}
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
@@ -19,7 +20,14 @@
});
}, 4000);
- $('.dropdown-toggle').dropdown()
+ $('.datepicker').datepicker({
+ format: 'yyyy-mm-dd',
+ weekStart: 1,
+ autoclose: true,
+ language: '{{ g.lang }}'
+ });
+
+ $('.dropdown-toggle').dropdown();
{% block js %}{% endblock %}
});