Merge pull request #3402 from Raven24/fix-photo-delete

tell jQuery not to expect html when deleting photos in the publisher
This commit is contained in:
Florian Staudacher 2012-06-18 06:52:04 -07:00
commit f3d983151b

View file

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