Add empty alt text to avatars as they are decorative next to usernames

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
pull/6700/head
Jan-Christoph Borchardt 8 years ago
parent 61f10b27bc
commit f7e6da9a8e
  1. 4
      core/js/jquery.avatar.js

@ -126,9 +126,9 @@
} else { } else {
$div.show(); $div.show();
if (ie8fix === true) { if (ie8fix === true) {
$div.html('<img width="' + size + '" height="' + size + '" src="'+url+'#'+Math.floor(Math.random()*1000)+'">'); $div.html('<img width="' + size + '" height="' + size + '" src="'+url+'#'+Math.floor(Math.random()*1000)+'" alt="">');
} else { } else {
$div.html('<img width="' + size + '" height="' + size + '" src="'+url+'">'); $div.html('<img width="' + size + '" height="' + size + '" src="'+url+'" alt="">');
} }
} }
if(typeof callback === 'function') { if(typeof callback === 'function') {

Loading…
Cancel
Save