From 0444613e38921cba22f411955fbc3e52c88649d0 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Thu, 7 Jul 2011 10:54:08 -0700 Subject: [PATCH] fix for profile photto uploader preview --- app/views/photos/_new_profile_photo.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/photos/_new_profile_photo.haml b/app/views/photos/_new_profile_photo.haml index 4846b8da8..840f3f1c3 100644 --- a/app/views/photos/_new_profile_photo.haml +++ b/app/views/photos/_new_profile_photo.haml @@ -53,9 +53,9 @@ $('#fileInfo').text(fileName + ' completed').fadeOut(2000); $('#file-upload').removeClass("loading"); var id = responseJSON.data.photo.id; - var url = responseJSON.data.photo.url; + var url = responseJSON.data.photo.unprocessed_image.url; var oldPhoto = $('#photo_id'); - + console.log(responseJSON); if(oldPhoto.length == 0) { $('#update_profile_form').prepend(""); }else{