This commit is contained in:
Damien LASSERRE 2012-04-18 15:59:02 +00:00
parent 0eab5291e9
commit f0285eb499

View File

@ -110,7 +110,13 @@ $(document).ready(function()
$('#tabs').delegate('a.interval', 'click', function(e){
e.preventDefault();
var key = $(this).attr('id');
var values = $('input[name='+key+'1]').val() + ',' + $('input[name='+key+'2]').val();
var val1 = $('input[name='+key+'1]').val();
var val2 = $('input[name='+key+'2]').val();
if(!val1)
val1 = 0;
if(!val2)
val2 = 0;
var values = val1 + ',' + val2;
set(key, values);
return false;
});
@ -194,7 +200,7 @@ $(document).ready(function()
if($(this).is(':checked')) {
set($(this).attr('name'), 1);
} else {
set($(this).attr('name'), 0)
set($(this).attr('name'), 0);
}
});
});