stop propagation

master
Matt Huntington 9 years ago
parent b6fa1ce74f
commit 587438802d

@ -35,12 +35,12 @@ var render = function(){
}); });
d3.selectAll('circle').on('click', function(datum, index){ d3.selectAll('circle').on('click', function(datum, index){
//send delete //send delete
d3.event.stopPropagation();
d3.request('/runs/'+datum.id) d3.request('/runs/'+datum.id)
.header("Content-Type", "application/json") //we're sending data .header("Content-Type", "application/json") //we're sending data
.send('DELETE', render); //send a DELETE request .send('DELETE', render); //send a DELETE request
}); });
}); });
}; };
render(); render();

Loading…
Cancel
Save