Skip to content
Browse files

Merge pull request #14 from pomartel/remove_completed_progress_bar

Make removing the progress bar after the download optional
  • Loading branch information...
2 parents 64801c9 + bab970c commit 4516fb3526aaa42fcea8376f2ffe000f5d465c42 Wayne committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/assets/javascripts/s3_direct_upload.js.coffee
View
3 app/assets/javascripts/s3_direct_upload.js.coffee
@@ -18,6 +18,7 @@ $.fn.S3Uploader = (options) ->
path: ''
additional_data: null
before_add: null
+ remove_completed_progress_bar: true
$.extend settings, options
@@ -47,7 +48,7 @@ $.fn.S3Uploader = (options) ->
content[$uploadForm.data('as')] = content.url
$.post(to, content)
- data.context.remove() if data.context # remove progress bar
+ data.context.remove() if data.context && settings.remove_completed_progress_bar # remove progress bar
$uploadForm.trigger("s3_upload_complete", [content])
current_files.splice($.inArray(data, current_files), 1) # remove that element from the array

0 comments on commit 4516fb3

Please sign in to comment.
Something went wrong with that request. Please try again.