From b8a78b3b2085b1fde430e366236f5a6d0df75e83 Mon Sep 17 00:00:00 2001 From: Damien LASSERRE Date: Mon, 16 Jan 2012 13:50:30 +0000 Subject: [PATCH] Ajout de la fonction de comptage des textareas --- public/themes/default/scripts/fields.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/themes/default/scripts/fields.js b/public/themes/default/scripts/fields.js index 7adae0d4..ae375fc3 100644 --- a/public/themes/default/scripts/fields.js +++ b/public/themes/default/scripts/fields.js @@ -42,7 +42,7 @@ $(document).ready(function(){ }, }); - $("input.datepicker").datepicker({ dateFormat: 'yymmdd' } ); + $("input.datepicker").datepicker({ dateFormat: 'dd/mm/yy' } ); $( "#accordion" ).accordion({ autoHeight: false, @@ -103,6 +103,11 @@ $(document).ready(function(){ set($(this).attr('name'), $(this).val()); }); + $('#tabs').delegate('textarea', 'blur', function(e){ + e.stopPropagation(); + set($(this).attr('name'), $(this).val()); + }); + $('#tabs').delegate('a.interval', 'click', function(e){ e.preventDefault(); var key = $(this).attr('id');