pass the param to set the profile photo
This commit is contained in:
parent
3b7063d44a
commit
c91baf9f04
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@
|
|||
function createUploader(){
|
||||
var uploader = new qq.FileUploaderBasic({
|
||||
element: document.getElementById('file-upload'),
|
||||
params: {'photo' : {'pending' : true, 'aspect_ids' : "all"}},
|
||||
params: {'photo' : {'pending' : true, 'aspect_ids' : "all", 'set_profile_photo': true}},
|
||||
allowedExtensions: ['jpg', 'jpeg', 'png'],
|
||||
action: "#{photos_path}",
|
||||
debug: true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue