$(document).ready(function() {
				
	$(".defi_part_abandon").live("click",function(e){
	
		$.ajax({
			type: "POST",
			data: "defi_id=" + $(this).attr("val"),
			url: "/ajax/defi/defi_part.php",
			dataType : "json",
			error: function(msg, string){
				return false;
			},
			success: function(data, status){
			 	if(typeof(data.retour) != 'undefined')
				{
			 		if (data.retour == "0")
					{
						document.location.reload();
					}
				}
			}
		});

		return false;
	});

});
