tinymce_aws_file_upload 0.0.6 → 0.0.7

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: 06425bd3ddd81f24a2f426190d77e38310bf1e05
4
- data.tar.gz: e3b7573f7e069ac9b76b010b2b30001026383d44
3
+ metadata.gz: 6e9be785292bfb80e02f63626119a0b7b971aff1
4
+ data.tar.gz: 32fadf6a9d75f5fab6b1b2a86fc0375ad824af75
5
5
  SHA512:
6
- metadata.gz: 3924ac93e51d09eee97ff06a468b107378f952b202bc18ed806046b94cddce3e3e2c8abeb88664aceb80af5076570e0863968dde2c52e07e723cc564a6f2ce3f
7
- data.tar.gz: f768561d431fe72cc5c1f5ff4048d2d48d3c4ceb4e6b3ff5beade6b87d5d56eeb324b7cba80e48256f61c6cbdf18c51448b060133ac83ddbc9ff98d9021ee205
6
+ metadata.gz: 716859928f5653a83b2ddf984a8f5bea9a175dec7ae75c91015a0edb65f8f55c6579003888287947eae7e879e918d487600f1377865a1881a5feb45c0b1b266d
7
+ data.tar.gz: ba5b217008e6c55b39e30e7c2ce9b39eb3f325feea919dd88e7d09975d61956664398cf6f8ccf4ce20b10a2ba960ad078c026e3a4a49dc183ffead3eb4eaf6f9
@@ -35,6 +35,8 @@ create_form_data = (data, acl, file) ->
35
35
  return fd
36
36
 
37
37
  create_cors_request = (form_data, url, full_url, elem) ->
38
+ root.start_loading ?= ->
39
+ return null
38
40
  root.start_loading()
39
41
  xhr = new XMLHttpRequest()
40
42
  xhr.upload.addEventListener "progress", uploadProgress, false
@@ -56,5 +58,7 @@ uploadProgress = (evt) ->
56
58
  alert 'upload failed'
57
59
 
58
60
  uploadFailed = (evt) ->
61
+ root.stop_loading ?= ->
62
+ return null
59
63
  root.stop_loading()
60
64
  alert 'Ocorreu um erro.'
@@ -1,3 +1,3 @@
1
1
  module TinymceAwsFileUpload
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinymce_aws_file_upload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Schvartz