mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Merge pull request #2246 from h3yduck/master
Fix bug: cannot upload profile picture
This commit is contained in:
commit
3e07e45766
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ module.exports = class AccountSettingsView extends CocoView
|
|||
photoContainer.addClass('saving')
|
||||
onSaved = (uploadingPath) =>
|
||||
@$el.find('#photoURL').val(uploadingPath)
|
||||
@onInputChanged() # cause for some reason editing the value doesn't trigger the jquery event
|
||||
@$el.find('#photoURL').trigger('change') # cause for some reason editing the value doesn't trigger the jquery event
|
||||
me.set('photoURL', uploadingPath)
|
||||
photoContainer.removeClass('saving').attr('src', me.getPhotoURL(photoContainer.width()))
|
||||
filepicker.pick {mimetypes: 'image/*'}, @onImageChosen(onSaving, onSaved)
|
||||
|
|
Loading…
Reference in a new issue