From c91baf9f040020dfdc3f415d13a656cdedffbb1b Mon Sep 17 00:00:00 2001 From: maxwell Date: Wed, 30 Mar 2011 14:43:37 -0700 Subject: [PATCH] pass the param to set the profile photo --- app/views/photos/_new_profile_photo.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/photos/_new_profile_photo.haml b/app/views/photos/_new_profile_photo.haml index 08e97b0ec..17b7ec7b2 100644 --- a/app/views/photos/_new_profile_photo.haml +++ b/app/views/photos/_new_profile_photo.haml @@ -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,