mirror of https://github.com/zulip/zulip.git
Clean up HTML construction for bot avatars.
(imported from commit ef9122ac739163d97b3142c7e300ce595eefa6f7)
This commit is contained in:
parent
5999df005e
commit
949d6bfc8c
|
@ -6,7 +6,7 @@ function add_bot_row(name, email, avatar_url, api_key) {
|
|||
var avatar_cell;
|
||||
|
||||
if (avatar_url) {
|
||||
avatar_cell = '<img src="' + avatar_url + '" class="avatar">';
|
||||
avatar_cell = $('<img>').attr('src', avatar_url).attr('class', 'avatar');
|
||||
} else {
|
||||
avatar_cell = '(default)';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue