tell jQuery not to expect html when deleting photos in the publisher

This commit is contained in:
Florian Staudacher 2012-06-18 15:25:50 +02:00
parent d331a14dd2
commit f4d7196fb5

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