Clean up HTML construction for bot avatars.

(imported from commit ef9122ac739163d97b3142c7e300ce595eefa6f7)
This commit is contained in:
Steve Howell 2013-07-03 12:22:06 -04:00
parent 5999df005e
commit 949d6bfc8c
1 changed files with 1 additions and 1 deletions

View File

@ -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)';
}