Skip to content

Commit

Permalink
Merge pull request blueimp#2859 from jbirkholz/master
Browse files Browse the repository at this point in the history
Added destroyfailed event
  • Loading branch information
blueimp committed Jan 8, 2014
2 parents 0b4340d + 3bd8d19 commit b43f036
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/jquery.fileupload-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,9 @@
};
if (data.url) {
data.dataType = data.dataType || that.options.dataType;
$.ajax(data).done(removeNode);
$.ajax(data).done(removeNode).fail(function () {
that._trigger('destroyfailed', e, data);
});
} else {
removeNode();
}
Expand Down

0 comments on commit b43f036

Please sign in to comment.