Fix accessibility.
This commit is contained in:
parent
3fec600cba
commit
980053c717
|
@ -445,7 +445,9 @@ window.GalleryTheater = function() {
|
|||
} else {
|
||||
img = imageContainer.find(".gal-active");
|
||||
if (selectedFromStrip) {
|
||||
imageContainer.find(".gal-" + direction).attr("src", currentPic.image.file.theater.url);
|
||||
img = imageContainer.find(".gal-" + direction);
|
||||
img.attr("src", currentPic.image.file.theater.url);
|
||||
img.attr("alt", currentPic.image.alt_title);
|
||||
}
|
||||
if (direction == "next") {
|
||||
imageContainer.find(".gal-prev").remove();
|
||||
|
@ -527,6 +529,7 @@ window.GalleryTheater = function() {
|
|||
var obj = albumData.images[currentPic.index + 1],
|
||||
nextImg = $("<img class='gallery-image gal-next gal-inactive'>");
|
||||
nextImg.attr("src", obj.file.theater.url);
|
||||
nextImg.attr("alt", obj.alt_title);
|
||||
nextImg.hide();
|
||||
imageContainer.append(nextImg);
|
||||
nextImg.on("load", function() {
|
||||
|
@ -545,6 +548,7 @@ window.GalleryTheater = function() {
|
|||
var obj = albumData.images[currentPic.index - 1],
|
||||
prevImg = $("<img class='gallery-image gal-prev gal-inactive'>");
|
||||
prevImg.attr("src", obj.file.theater.url);
|
||||
prevImg.attr("alt", obj.alt_title);
|
||||
prevImg.hide();
|
||||
imageContainer.prepend(prevImg);
|
||||
prevImg.on("load", function() {
|
||||
|
|
Loading…
Reference in New Issue