debugging js

This commit is contained in:
Daniel Vincent Grippi 2010-09-14 21:10:10 -07:00
parent 4a86632cf3
commit 509c16d953

View file

@ -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 {