diff --git a/app/views/photos/_new_photo.haml b/app/views/photos/_new_photo.haml index b8d1c58dd..b5f418f2f 100644 --- a/app/views/photos/_new_photo.haml +++ b/app/views/photos/_new_photo.haml @@ -64,6 +64,7 @@ var photo = $(this).closest('.publisher_photo'); photo.addClass("dim"); $.ajax({url: "photos/" + photo.children('img').attr('data-id'), + dataType: 'json', type: 'DELETE', success: function() { photo.fadeOut(400, function(){