need to send it without data
This commit is contained in:
parent
d80ba7ca58
commit
3bd686143f
1 changed files with 1 additions and 2 deletions
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue