mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-23 16:14:48 +00:00
Fix jcrop holder image having no alt tag
This commit is contained in:
parent
cc85d42fbd
commit
73f4047809
1 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,10 @@ function setupJcrop(image, original, focalPointOriginal, fields) {
|
|||
}
|
||||
}, function() {
|
||||
jcropapi = this
|
||||
|
||||
// Set alt="" on the image so its src is not read out loud to screen reader users.
|
||||
var $holderImage = $('img', jcropapi.ui.holder);
|
||||
$holderImage.attr('alt', '');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue