From be32a2550ec3b40d393620c301bbaa5bb59d1bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Sureau?= Date: Thu, 5 Apr 2012 15:40:09 +0200 Subject: Update to Boostrap v2. Remove unused libs (QTip, JQueryUI) and add bootstrap-datepicker which is much lighter. --- budget/templates/list_bills.html | 66 ++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 40 deletions(-) (limited to 'budget/templates/list_bills.html') diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index 7d3ff11..b247fcc 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -1,27 +1,16 @@ {% extends "layout.html" %} -{% block title %}- {{ g.project.name }}{% endblock %} +{% block title %} - {{ g.project.name }}{% endblock %} {% block head %} - - - {% if g.lang != "en" %} - - {% endif %} + {% endblock %} {% block js %} - // specifies that the text in #name text field has to be hidden on user typing - auto_hide_default_text('#name'); - $(window).resize(function() { $("#sidebar").height( window.innerHeight-50 ); $("#table_overflow").height( $("#sidebar").height()-120 ); }); - $('#cancel-form').click(function(){ - $('#bill-form').modal('hide'); - }); - {% if add_bill %} $('#new-bill').click(); {% endif %} // ask for confirmation before removing an user @@ -45,10 +34,13 @@ $(this).find('.action').hide(); }); - $.datepicker.setDefaults({'dateFormat': 'yy-mm-dd'}); - $(".datepicker").datepicker($.datepicker.regional['{{ g.lang }}']); - - + $('.datepicker').datepicker({ + format: 'yyyy-mm-dd', + weekStart: 1, + autoclose: true, + language: '{{ g.lang }}' + }); + var highlight_owers = function(){ var ower_ids = $(this).attr("owers").split(','); var payer_id = $(this).attr("payer"); @@ -69,28 +61,28 @@ {% block sidebar %}