From 35103184a16c89d8cb3d9e32272eb490a640f9e1 Mon Sep 17 00:00:00 2001 From: Damien LASSERRE Date: Fri, 20 Jan 2012 14:35:37 +0000 Subject: [PATCH] css+ script --- public/themes/default/scripts/fields.js | 10 +++++++++- public/themes/default/styles/main.css | 7 ++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/public/themes/default/scripts/fields.js b/public/themes/default/scripts/fields.js index eba6b84b..f3279f50 100644 --- a/public/themes/default/scripts/fields.js +++ b/public/themes/default/scripts/fields.js @@ -111,7 +111,15 @@ $(document).ready(function(){ set(key, values); return false; }); - + + $('#tabs').delegate('a.intervalSelect', 'click', function(e){ + e.preventDefault(); + var key = $(this).attr('id'); + var values = $('select[name='+key+'1] option:selected').val()+','+$('select[name='+key+'2] option:selected').val(); + set(key, values); + return false; + }); + $('#tabs').delegate('a.arborescence', 'click', function(e) { e.preventDefault(); var title = $(this).attr('title'); diff --git a/public/themes/default/styles/main.css b/public/themes/default/styles/main.css index dbb05c8d..bd1475fd 100644 --- a/public/themes/default/styles/main.css +++ b/public/themes/default/styles/main.css @@ -341,7 +341,7 @@ table.ciblage td { width: 110px; } -.field input, .field select, .field textarea { +.field input, .field textarea { font-size: 0.9em; margin: 2px 0; border:1px solid #000000; @@ -362,3 +362,8 @@ table.ciblage td { .interval input[type=text] { width:100px; } + +.intervalSelect +{ + width:100px; +}