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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e9be785292bfb80e02f63626119a0b7b971aff1
|
4
|
+
data.tar.gz: 32fadf6a9d75f5fab6b1b2a86fc0375ad824af75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.'
|