/**
 * 
 */
$().ready(function(){
	
	$('.delete-position').click(function(){
		var tr = $(this).parents('tr');
		var id = $(this).attr('id').replace('del','');
		$.ajax({
			'url' : '/index.php/site/delete',
			'type' : 'POST',
			'data' : { 'id' : id },
			'success' : function() {
				tr.remove();
			}
		});
		return false;
	});
	
});
