Browse files

Replacing SWFUpload with Flash-less solution

  • Loading branch information...
1 parent 95793ff commit fa402e3b66ffbb80688233c38926ead64a64d633 @samluescher committed Feb 14, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 media_tree/static/media_tree/js/django_admin_fileuploader.js
View
3 media_tree/static/media_tree/js/django_admin_fileuploader.js
@@ -87,6 +87,9 @@ jQuery(function($) {
_onComplete: function(id, fileName, result){
qq.FileUploaderBasic.prototype._onComplete.apply(this, arguments);
+ // the request was aborted/cancelled
+ if (!this._files[id]) return;
+
// mark completed
var item = this._getItemByFileId(id);
qq.remove(this._find(item, 'cancel'));

0 comments on commit fa402e3

Please sign in to comment.