indent fix
This commit is contained in:
@@ -4,9 +4,9 @@ App.FormFileUploadComponent = Ember.TextField.extend
|
|||||||
type: 'file'
|
type: 'file'
|
||||||
file: null,
|
file: null,
|
||||||
change: (e)->
|
change: (e)->
|
||||||
reader = new FileReader()
|
reader = new FileReader()
|
||||||
that = this
|
that = this
|
||||||
reader.onload = (el)->
|
reader.onload = (el)->
|
||||||
fileToUpload = el.target.result
|
fileToUpload = el.target.result
|
||||||
Ember.run -> that.set('file', fileToUpload)
|
Ember.run -> that.set('file', fileToUpload)
|
||||||
reader.readAsDataURL(e.target.files[0])
|
reader.readAsDataURL(e.target.files[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user