anaconda 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +3 -0
- data/app/assets/javascripts/anaconda_uploader.js.coffee +2 -2
- data/lib/anaconda/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41b78076d96d6575112497147272ed19f16fbcc3
|
4
|
+
data.tar.gz: 3078b8a288c4e51ba7cf345b2ec289411f99ecf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14237951c90193befe07b5a22aa123061712fec7045517050b9013dd6c35599060a6694c79d2af885fd6a0e5305617c1554b2eb3d0e2e08e5983093258c22a0c
|
7
|
+
data.tar.gz: 85875e215787fcd52bc0dff686f167db259936efe2395d3531d62a050950294bb15243663ab30d352ac5f3275ac38099e8a0e13c11b1dcdf125e14773952d302
|
data/README.markdown
CHANGED
@@ -140,6 +140,9 @@ We highly recommend the `figaro` gem [https://github.com/laserlemon/figaro](http
|
|
140
140
|
The magic method is asset_url which will return a signed S3 URL if the file is stored with an ACL of `private` and will return a non-signed URL if the file is stored with public access.
|
141
141
|
|
142
142
|
## Changelog
|
143
|
+
* 0.9.4
|
144
|
+
* Fix uploads. Previous version broke them completely.
|
145
|
+
|
143
146
|
* 0.9.3
|
144
147
|
* If no files have been selected, let form submit as normal
|
145
148
|
|
@@ -31,7 +31,7 @@ class @AnacondaUploadManager
|
|
31
31
|
|
32
32
|
form_submit_handler: (e) ->
|
33
33
|
self = e.data.self
|
34
|
-
return true if self.upload_automatically || self.all_uploads_are_complete
|
34
|
+
return true if self.upload_automatically || self.all_uploads_are_complete()
|
35
35
|
e.preventDefault()
|
36
36
|
$(this).off( 'submit', self.form_submit_handler )
|
37
37
|
|
@@ -46,7 +46,7 @@ class @AnacondaUploadManager
|
|
46
46
|
all_uploads_are_complete: ->
|
47
47
|
all_completed = true
|
48
48
|
for upload_field, i in @anaconda_upload_fields
|
49
|
-
if upload_field.upload_in_progress
|
49
|
+
if upload_field.upload_in_progress || (!upload_field.upload_in_progress && upload_field.file != null)
|
50
50
|
all_completed = false
|
51
51
|
break
|
52
52
|
return all_completed
|
data/lib/anaconda/version.rb
CHANGED