anaconda 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2746d31e7d8b251a9d0f4cacd13b3f5d645551a
4
- data.tar.gz: 189f231b3318612ad7288387efe0186419efd456
3
+ metadata.gz: 00b5e4ca184d2413bfd4f6d9de606c3eebab574d
4
+ data.tar.gz: 03bd4193341fd9850f4f0f7c6df1e73b497a365b
5
5
  SHA512:
6
- metadata.gz: f4352b3b5ea59ee8f0034ec422b6414dddc28dbbef66829439c0acccb577ccddc9c93285a13dd134cbe02bd4b5727434c5c83099747baae5ad3c9d47419f4ec8
7
- data.tar.gz: c4f3b9b7d280614e7058667353e539a93a5a3f0aa46b575fabe29886bd6ca23d58b54acac24e97b58c714ceeaea993f4246711a2fd648476699c7dc49eb579b0
6
+ metadata.gz: 342153733cbf07604cd4af6caacf0bd0503f8056ee0ef9c7b50403703a75f65c1ede7459bc01c6a922baa389aa522d6c06788f8c83304994c472449db1f3095d
7
+ data.tar.gz: 45e63e1c4569ad3efd547748cc84cd041653a9880b0ef9466318c63822d7e63eadd1ff1d333c53903e9f8541af7a04e41dd5295f7c4ae31fd305f5de19a0fb98
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.3
144
+ * If no files have been selected, let form submit as normal
145
+
143
146
  * 0.9.2
144
147
  * Always use UTC for policy expiration date, even if Time.zone is set to something else.
145
148
 
@@ -31,7 +31,7 @@ class @AnacondaUploadManager
31
31
 
32
32
  form_submit_handler: (e) ->
33
33
  self = e.data.self
34
- return if self.upload_automatically
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
 
@@ -42,7 +42,15 @@ class @AnacondaUploadManager
42
42
  for upload_field, i in @anaconda_upload_fields
43
43
  upload_field.reset()
44
44
  @anaconda_upload_fields = []
45
-
45
+
46
+ all_uploads_are_complete: ->
47
+ all_completed = true
48
+ for upload_field, i in @anaconda_upload_fields
49
+ if upload_field.upload_in_progress
50
+ all_completed = false
51
+ break
52
+ return all_completed
53
+
46
54
  upload_completed: ->
47
55
  all_completed = true
48
56
  for upload_field, i in @anaconda_upload_fields
@@ -1,5 +1,5 @@
1
1
  module Anaconda
2
2
  module Rails
3
- VERSION = "0.9.2"
3
+ VERSION = "0.9.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anaconda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McFadden