Browse files

MDL-35979 - Commenting - Adding an empty alt attribute to the javascr…

…ipt generated delete icon for comments
  • Loading branch information...
1 parent 0395306 commit b815ccd31975f43bd26fcaaf044dfe71a819fb13 @jsnfwlr jsnfwlr committed Dec 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 comment/comment.js
View
2 comment/comment.js
@@ -184,7 +184,7 @@ bodyContent: '<div class="comment-delete-confirm"><a href="#" id="confirmdelete-
val = val.replace('___name___', list[i].fullname);
}
if (list[i]['delete']||newcmt) {
- list[i].content = '<div class="comment-delete"><a href="#" id ="comment-delete-'+this.client_id+'-'+list[i].id+'" title="'+M.str.moodle.deletecomment+'"><img src="'+M.util.image_url('t/delete', 'core')+'" /></a></div>' + list[i].content;
+ list[i].content = '<div class="comment-delete"><a href="#" id ="comment-delete-'+this.client_id+'-'+list[i].id+'" title="'+M.str.moodle.deletecomment+'"><img alt="" src="'+M.util.image_url('t/delete', 'core')+'" /></a></div>' + list[i].content;
}
val = val.replace('___time___', list[i].time);
val = val.replace('___picture___', list[i].avatar);

0 comments on commit b815ccd

Please sign in to comment.