tell jQuery not to expect html when deleting photos in the publisher
This commit is contained in:
parent
d331a14dd2
commit
f4d7196fb5
1 changed files with 1 additions and 0 deletions
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue