Skip to content

Commit 77d5d08

Browse files
authored
Merge pull request #126 from Raincal/fancybox
fix(fancybox): add data-fancybox attribute for fancybox3
2 parents 03bd4b4 + c449792 commit 77d5d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/js/src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ NexT.utils = NexT.$u = {
1515

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

2121
$imageWrapLink.addClass('fancybox fancybox.image');

0 commit comments

Comments
 (0)