Skip to content

Commit

Permalink
Merge pull request #85 from AnastasiaBuniakEPAM/JS-323
Browse files Browse the repository at this point in the history
JS-370: Gallery. Missconfiguration on theme level should not break JS…
  • Loading branch information
uharbachou1 committed Jan 4, 2016
2 parents db18db2 + 3957067 commit e50f75b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/web/magnifier/magnify.js
Original file line number Diff line number Diff line change
Expand Up @@ -854,9 +854,11 @@ define([
var $activeStageFrame = $(gallerySelector).data('fotorama').activeFrame.$stageFrame;
if (!$activeStageFrame.find(magnifierZoomSelector).length) {
hideMagnifier();
config.magnifierOpts.large = $(gallerySelector).data('fotorama').activeFrame.img;
config.magnifierOpts.full = fotorama.data[fotorama.activeIndex].original;
!checkForVideo($activeStageFrame) && $($activeStageFrame).magnify(config.magnifierOpts);
if (config.magnifierOpts) {
config.magnifierOpts.large = $(gallerySelector).data('fotorama').activeFrame.img;
config.magnifierOpts.full = fotorama.data[fotorama.activeIndex].original;
!checkForVideo($activeStageFrame) && $($activeStageFrame).magnify(config.magnifierOpts);
}
}
});

Expand Down

0 comments on commit e50f75b

Please sign in to comment.