debugging js
This commit is contained in:
parent
4a86632cf3
commit
509c16d953
1 changed files with 8 additions and 1 deletions
|
|
@ -44,7 +44,14 @@ $(function() {
|
|||
$.ajax({
|
||||
type: "DELETE",
|
||||
url: "/requests/" + ui.draggable[0].getAttribute('request_id') ,
|
||||
data: {"accept" : true , "aspect_id" : $(this)[0].id }
|
||||
data: {"accept" : true , "aspect_id" : $(this)[0].id },
|
||||
success: function(data){
|
||||
var old_request_count = $(".new_requests").html().match(/\d+/);
|
||||
|
||||
alert( old_request_count );
|
||||
|
||||
$(".new_requests").html().replace(/\d+/,old_request_count-1);
|
||||
}
|
||||
});
|
||||
|
||||
}else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue