need to send it without data

This commit is contained in:
ilya 2010-09-12 22:10:50 -07:00
parent d80ba7ca58
commit 3bd686143f

View file

@ -46,8 +46,7 @@ $(function() {
if (ui.draggable[0].getAttribute('request_id') != null){ if (ui.draggable[0].getAttribute('request_id') != null){
$.ajax({ $.ajax({
type: "DELETE", type: "DELETE",
url: "/requests/" + ui.draggable[0].getAttribute('request_id') , url: "/requests/" + ui.draggable[0].getAttribute('request_id')
data: {"accept" : false }
}); });
alert("Removed Request, proably want an undo countdown.") alert("Removed Request, proably want an undo countdown.")
$(ui.draggable[0]).fadeOut('slow') $(ui.draggable[0]).fadeOut('slow')