fix for profile photto uploader preview
This commit is contained in:
parent
2ea64658ec
commit
0444613e38
1 changed files with 2 additions and 2 deletions
|
|
@ -53,9 +53,9 @@
|
||||||
$('#fileInfo').text(fileName + ' completed').fadeOut(2000);
|
$('#fileInfo').text(fileName + ' completed').fadeOut(2000);
|
||||||
$('#file-upload').removeClass("loading");
|
$('#file-upload').removeClass("loading");
|
||||||
var id = responseJSON.data.photo.id;
|
var id = responseJSON.data.photo.id;
|
||||||
var url = responseJSON.data.photo.url;
|
var url = responseJSON.data.photo.unprocessed_image.url;
|
||||||
var oldPhoto = $('#photo_id');
|
var oldPhoto = $('#photo_id');
|
||||||
|
console.log(responseJSON);
|
||||||
if(oldPhoto.length == 0) {
|
if(oldPhoto.length == 0) {
|
||||||
$('#update_profile_form').prepend("<input type='hidden' value='" + id + "' id='photo_id' name='photo_id'/>");
|
$('#update_profile_form').prepend("<input type='hidden' value='" + id + "' id='photo_id' name='photo_id'/>");
|
||||||
}else{
|
}else{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue