fixed js for changing a user's profile photo on photos#show
This commit is contained in:
parent
a8086f2990
commit
b320f5df72
1 changed files with 2 additions and 2 deletions
|
|
@ -127,8 +127,8 @@ $(".make_profile_photo").live("click", function(){
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: '/users/'+user_id,
|
url: '/people/'+user_id,
|
||||||
data: {"user":{"profile":{ "image_url": photo_url }}},
|
data: {"person":{"profile":{ "image_url": photo_url }}},
|
||||||
success: function(){
|
success: function(){
|
||||||
$("img[data-person_id='"+ person_id +"']").each( function() {
|
$("img[data-person_id='"+ person_id +"']").each( function() {
|
||||||
$(this).attr('src', photo_url);
|
$(this).attr('src', photo_url);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue