1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Bugfix : calendar widget not working when you edit a bill.

This commit is contained in:
A.Avenel 2012-09-03 18:11:31 +02:00
parent a2b950d9c8
commit d0129abc0e
3 changed files with 9 additions and 11 deletions

View file

@ -2,9 +2,6 @@
{% block js %} {% block js %}
$('#cancel-form').click(function(){location.href={{ url_for(".list_bills") }};}); $('#cancel-form').click(function(){location.href={{ url_for(".list_bills") }};});
$.datepicker.setDefaults({'dateFormat': 'yy-mm-dd'});
$(".datepicker").datepicker($.datepicker.regional['{{ g.lang }}']);
{% endblock %} {% endblock %}

View file

@ -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/jquery-1.7.2.min.js") }}"></script>
<script src="{{ url_for("static", filename="js/ihatemoney.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.min.js") }}"></script>
<script src="{{ url_for("static", filename="js/bootstrap-datepicker.js") }}"></script>
{% block head %}{% endblock %} {% block head %}{% endblock %}
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
$(document).ready(function(){ $(document).ready(function(){
@ -19,7 +20,14 @@
}); });
}, 4000); }, 4000);
$('.dropdown-toggle').dropdown() $('.datepicker').datepicker({
format: 'yyyy-mm-dd',
weekStart: 1,
autoclose: true,
language: '{{ g.lang }}'
});
$('.dropdown-toggle').dropdown();
{% block js %}{% endblock %} {% block js %}{% endblock %}
}); });

View file

@ -34,13 +34,6 @@
$(this).find('.action').hide(); $(this).find('.action').hide();
}); });
$('.datepicker').datepicker({
format: 'yyyy-mm-dd',
weekStart: 1,
autoclose: true,
language: '{{ g.lang }}'
});
var highlight_owers = function(){ var highlight_owers = function(){
var ower_ids = $(this).attr("owers").split(','); var ower_ids = $(this).attr("owers").split(',');
var payer_id = $(this).attr("payer"); var payer_id = $(this).attr("payer");