Skip to content

Commit

Permalink
Merge pull request #126 from Raincal/fancybox
Browse files Browse the repository at this point in the history
fix(fancybox): add data-fancybox attribute for fancybox3
  • Loading branch information
ivan-nginx committed Feb 8, 2018
2 parents 03bd4b4 + c449792 commit 77d5d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/js/src/utils.js
Expand Up @@ -15,7 +15,7 @@ NexT.utils = NexT.$u = {

if ($imageWrapLink.length < 1) {
var imageLink = ($image.attr('data-original')) ? this.getAttribute('data-original') : this.getAttribute('src');
$imageWrapLink = $image.wrap('<a href="' + imageLink + '"></a>').parent('a');
$imageWrapLink = $image.wrap('<a data-fancybox="group" href="' + imageLink + '"></a>').parent('a');
}

$imageWrapLink.addClass('fancybox fancybox.image');
Expand Down

0 comments on commit 77d5d08

Please sign in to comment.