mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-05 15:41:08 +00:00
Fix jcrop holder image having no alt tag. Fix part of #5309
Fix jcrop holder image having no alt tag. Fix part of #5309
This commit is contained in:
commit
a81484f642
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