fixed js for changing a user's profile photo on photos#show

This commit is contained in:
danielvincent 2010-10-27 08:45:43 -07:00
parent a8086f2990
commit b320f5df72

View file

@ -127,8 +127,8 @@ $(".make_profile_photo").live("click", function(){
$.ajax({
type: "PUT",
url: '/users/'+user_id,
data: {"user":{"profile":{ "image_url": photo_url }}},
url: '/people/'+user_id,
data: {"person":{"profile":{ "image_url": photo_url }}},
success: function(){
$("img[data-person_id='"+ person_id +"']").each( function() {
$(this).attr('src', photo_url);