Skip to content

Commit

Permalink
fix updateAvatar callback
Browse files Browse the repository at this point in the history
  • Loading branch information
tcuje committed Dec 13, 2017
1 parent 6d68b42 commit 7d5bce9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions las2peer-frontend-user-widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -1349,8 +1349,12 @@ <h4>Addressbook:</h4>
},

_updateAvatar(event){
document.getElementById("preview").style.backgroundImage = "url('"+this.baseUrl+"/fileservice/files/" + event.detail.response + "')";
document.getElementById("userImage").value = event.detail.response;
userImage = event.detail.response;
document.getElementById('userImage').setAttribute('value', userImage);
if(userImage.length>0){
$('#dropdown-button').css("background-image", "url('"+this.baseUrl+"/fileservice/files/" + userImage + "')");
document.querySelector("#preview").style.backgroundImage = "url('"+this.baseUrl+"/fileservice/files/" + userImage + "')";
}
},

_handleError(event) {
Expand Down

0 comments on commit 7d5bce9

Please sign in to comment.