Skip to content

Commit

Permalink
Fix #399 and #394 (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang authored and Raincal committed Nov 7, 2018
1 parent b905385 commit c68bf23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/js/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ 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 data-fancybox="group" href="' + imageLink + '"></a>').parent('a');
$imageWrapLink.addClass('fancybox fancybox.image');
$imageWrapLink.attr('rel', 'group');
}

$imageWrapLink.addClass('fancybox fancybox.image');
$imageWrapLink.attr('rel', 'group');

if (imageTitle) {
$imageWrapLink.append('<p class="image-caption">' + imageTitle + '</p>');

Expand Down

0 comments on commit c68bf23

Please sign in to comment.