function remove_point_from_idea(e) {
    const id = $(this).attr('data-id');
    $.ajax({
        url: '/ideas/remove_point',
        type: 'POST',
        data: {
            sid: user_socket_id,
            idea_id: id
        },
        async: true,
        cache: false
    })
}
// When a user removes a point
When a user removes a point
When a user removes a point
function remove_point_from_idea(e) {
    const id = $(this).attr('data-id');
    $.ajax({
        url: '/ideas/remove_point',
        type: 'POST',
        data: {
            sid: user_socket_id,
            idea_id: id
        },
        async: true,
        cache: false
    })
}
function remove_point_from_idea ( e ) { const id = $ ( this ) . attr ( 'data-id' ) ; $ . ajax ( { url : '/ideas/remove_point' , type : 'POST' , data : { sid : user_socket_id , idea_id : id } , async : true , cache : false } ) }
When a user removes a point
When a user removes a point