Skip to content

Commit 367e2c5

Browse files
author
Jose Pardilla
committed
fix nolightbox class not being recognized when applied to the img tag, fixes #13
1 parent 618d5b3 commit 367e2c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fancybox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function mfbfw_init() {
241241
}
242242
243243
// Supported file extensions
244-
var thumbnails = jQuery("a:has(img)").not(".nolightbox").filter( function() { return /\.(jpe?g|png|gif|bmp)$/i.test(jQuery(this).attr("href")) });
244+
var thumbnails = jQuery("a:has(img)").not(".nolightbox, .nofancybox, a:has(img.nolightbox, img.nofancybox)").filter( function() { return /\.(jpe?g|png|gif|bmp)$/i.test(jQuery(this).attr("href")) });
245245
';
246246

247247
if ( $mfbfw['galleryType'] == 'post' ) {

0 commit comments

Comments
 (0)