Commit f3d98315 authored by Florian Staudacher's avatar Florian Staudacher
Browse files

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

tell jQuery not to expect html when deleting photos in the publisher
parents d331a14d f4d7196f
......@@ -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(){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment