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:
Kalob Taulien 2019-07-31 09:13:59 -06:00 committed by GitHub
commit a81484f642
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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