function deleteTask(id) {
    $.ajax({
        url: 'api/deal/' + id,
        type: 'DELETE',
        contentType: "json",
        success: function() {
            $('#' + id).fadeToggle('fast');
        }
    });

}
//Send DELETE request according with ID of task
Send DELETE request according with ID of task
Send DELETE request according with ID of task
function deleteTask(id) {
    $.ajax({
        url: 'api/deal/' + id,
        type: 'DELETE',
        contentType: "json",
        success: function() {
            $('#' + id).fadeToggle('fast');
        }
    });
}
function deleteTask ( id ) { $ . ajax ( { url : 'api/deal/' + id , type : 'DELETE' , contentType : "json" , success : function ( ) { $ ( '#' + id ) . fadeToggle ( 'fast' ) ; } } ) ; }
Send DELETE request according with ID of task
Send DELETE request according with ID of task