1
0
Fork 0

prevent browsers from displaying a broken img

This commit is contained in:
gschwab 2014-02-24 11:08:18 +01:00
parent c6c7694711
commit 83e2bccd5a
1 changed files with 2 additions and 2 deletions

View File

@ -48,14 +48,14 @@
if (!img) {
img = " ";
} else {
img = "https://s.gravatar.com/avatar/" + img + "?s=23";
img = '<img src="https://s.gravatar.com/avatar/' + encodeURI(img) + '?s=23" />';
}
if (!name) {
name = " ";
}
$("#userManagementTable tbody").append(
'<tr class="editUser" id="' + username + '">' +
'<td><a><img src="' + img + '"></a></td>' +//avatar
'<td><a>' + img + '</a></td>' +//avatar
'<td><a>' + username + '</a></td>' +//username
'<td><a>' + name + '</a></td>' +//name
'<td><a>' + active + '</a></td>' +//active