fileupload: uiloading error
This commit is contained in:
parent
96c59ee3bd
commit
d40f8155c7
1 changed files with 4 additions and 3 deletions
|
|
@ -18,8 +18,9 @@ module.exports = function uiFileUpload(types, ok, error) {
|
|||
|
||||
|
||||
var reader = new FileReader(),
|
||||
file = e.target.files[0],
|
||||
loader = uiLoading(locales('loading_upload'))
|
||||
file = e.target.files[0]
|
||||
|
||||
uiLoading(locales('loading_upload'))
|
||||
|
||||
reader.onerror = reader.onabort = function() {
|
||||
loader.close()
|
||||
|
|
@ -27,7 +28,7 @@ module.exports = function uiFileUpload(types, ok, error) {
|
|||
}
|
||||
|
||||
reader.onload = function(e) {
|
||||
loader.close()
|
||||
uiLoading(false)
|
||||
ok(file.path, e.target.result)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue