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:
commit
f3d983151b
1 changed files with 1 additions and 0 deletions
|
|
@ -64,6 +64,7 @@
|
||||||
var photo = $(this).closest('.publisher_photo');
|
var photo = $(this).closest('.publisher_photo');
|
||||||
photo.addClass("dim");
|
photo.addClass("dim");
|
||||||
$.ajax({url: "photos/" + photo.children('img').attr('data-id'),
|
$.ajax({url: "photos/" + photo.children('img').attr('data-id'),
|
||||||
|
dataType: 'json',
|
||||||
type: 'DELETE',
|
type: 'DELETE',
|
||||||
success: function() {
|
success: function() {
|
||||||
photo.fadeOut(400, function(){
|
photo.fadeOut(400, function(){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue