diff --git a/lib/web/fotorama/fotorama.js b/lib/web/fotorama/fotorama.js index 2de7213f41ad6..df4044e41d1f2 100644 --- a/lib/web/fotorama/fotorama.js +++ b/lib/web/fotorama/fotorama.js @@ -1191,8 +1191,13 @@ fotoramaVersion = '4.6.4'; return !!el.getAttribute('disabled'); } - function disableAttr(FLAG) { - return {tabindex: FLAG * -1 + '', disabled: FLAG}; + function disableAttr(FLAG, disable) { + if (disable) { + return {disabled: FLAG}; + } else { + return {tabindex: FLAG * -1 + '', disabled: FLAG}; + + } } function addEnterUp(el, fn) { @@ -2613,10 +2618,10 @@ fotoramaVersion = '4.6.4'; disableNext = disableDirrection(1); $arrPrev .toggleClass(arrDisabledClass, disablePrev) - .attr(disableAttr(disablePrev)); + .attr(disableAttr(disablePrev, false)); $arrNext .toggleClass(arrDisabledClass, disableNext) - .attr(disableAttr(disableNext)); + .attr(disableAttr(disableNext, false)); } function thumbArrUpdate() { @@ -2633,10 +2638,10 @@ fotoramaVersion = '4.6.4'; } $thumbArrLeft .toggleClass(arrDisabledClass, isLeftDisable) - .attr(disableAttr(isLeftDisable)); + .attr(disableAttr(isLeftDisable, true)); $thumbArrRight .toggleClass(arrDisabledClass, isRightDisable) - .attr(disableAttr(isRightDisable)); + .attr(disableAttr(isRightDisable, true)); } function stageWheelUpdate() { diff --git a/lib/web/mage/gallery/gallery.html b/lib/web/mage/gallery/gallery.html index 4ce2961640544..15e9b88a8a657 100644 --- a/lib/web/mage/gallery/gallery.html +++ b/lib/web/mage/gallery/gallery.html @@ -25,13 +25,13 @@