Suppression e.preventDefault

This commit is contained in:
Michael RICOIS 2011-12-14 16:01:33 +00:00
parent cb08c519e1
commit be27e8849f

View File

@ -1,31 +1,26 @@
$(document).ready(function(){ $(document).ready(function(){
$('#tabs').delegate('select.criteres', 'change', function(e){ $('#tabs').delegate('select.criteres', 'change', function(e){
e.preventDefault();
e.stopPropagation(); e.stopPropagation();
set($(this).attr('name'), $(this, ':selected').val()); set($(this).attr('name'), $(this, ':selected').val());
}); });
$('#tabs').delegate('input[type=checkbox].criteres', 'click', function(e){ $('#tabs').delegate('input[type=checkbox].criteres', 'click', function(e){
e.preventDefault();
e.stopPropagation(); e.stopPropagation();
set($(this).attr('name'), $(this).val()); set($(this).attr('name'), $(this).val());
}); });
$('#tabs').delegate('input[type=radio].criteres', 'click', function(e){ $('#tabs').delegate('input[type=radio].criteres', 'click', function(e){
e.preventDefault();
e.stopPropagation(); e.stopPropagation();
set($(this).attr('name'), $(this).val()); set($(this).attr('name'), $(this).val());
}); });
$('#tabs').delegate('input[type=text].criteres', 'blur', function(e){ $('#tabs').delegate('input[type=text].criteres', 'blur', function(e){
e.preventDefault();
e.stopPropagation(); e.stopPropagation();
set($(this).attr('name'), $(this).val()); set($(this).attr('name'), $(this).val());
}); });
$('#tabs').delegate('a.interval', 'click', function(e){ $('#tabs').delegate('a.interval', 'click', function(e){
e.preventDefault();
e.stopPropagation(); e.stopPropagation();
var key = $(this).attr('id'); var key = $(this).attr('id');
var values = $('input[name='+key+'1]').val() + ',' + $('input[name='+key+'1]').val(); var values = $('input[name='+key+'1]').val() + ',' + $('input[name='+key+'1]').val();