From f4d7196fb52c082e6caf3f048de887a484f1bd3a Mon Sep 17 00:00:00 2001 From: Florian Staudacher Date: Mon, 18 Jun 2012 15:25:50 +0200 Subject: [PATCH] tell jQuery not to expect html when deleting photos in the publisher --- app/views/photos/_new_photo.haml | 1 + 1 file changed, 1 insertion(+) 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(){