Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Commit

Permalink
Only hide the start button if the submit method returns a jqXHR object.
Browse files Browse the repository at this point in the history
  • Loading branch information
blueimp committed Oct 27, 2011
1 parent aad2963 commit b927a2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jquery.fileupload-ui.js
@@ -1,5 +1,5 @@
/*
* jQuery File Upload User Interface Plugin 5.0.17
* jQuery File Upload User Interface Plugin 5.0.18
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
Expand Down Expand Up @@ -468,7 +468,9 @@
data = tmpl.data('data');
if (data && data.submit && !data.jqXHR) {
data.jqXHR = data.submit();
$(this).fadeOut();
if (data.jqXHR) {
$(this).fadeOut();
}
}
},

Expand Down

0 comments on commit b927a2d

Please sign in to comment.