pass the param to set the profile photo

This commit is contained in:
maxwell 2011-03-30 14:43:37 -07:00
parent 3b7063d44a
commit c91baf9f04

View file

@ -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,